Home Reference Source Repository
import InfoTextField from 'ntnu-react/material/InfoTextField.js'
public class | source

InfoTextField

Extends:

react~React.Component → InfoTextField

Material-ui TextField extended with an info field.

<InfoTextField
    floatingLabelText="My text field"
    infoText="With extra infotext added"
    wrapStyle={{flex: 1}}
    required={true}
/>

Static Member Summary

Static Public Members
public static
public static

Method Summary

Public Methods
public

render(): Node

Static Public Members

public static contextTypes: Object source

Properties:

NameTypeAttributeDescription
muiTheme Object

Theme

public static propTypes: Object source

Properties:

NameTypeAttributeDescription
infoText string
wrapStyle Object

Styles added to wrapping element.

fullWidth boolean

Default false.

floatingLabelText Node
required boolean

Mark field as required. Default false.

Public Methods

public render(): Node source

Return:

Node