<TextFielderrorMessage="There is a problem"label="Label"placeholder="Write Something"/>
<divclass="form-group"><label>Label</label><divclass="input-group is-invalid"><inputtype="text"class="form-control"placeholder="Write Something"/></div><divclass="invalid-feedback">There is a problem</div></div>
Label text. Ideally you should pass "id" as well, TextField will automatically connect the label with "for"
clear
Required: false
type: boolean
Renders without borders.
errorMessage
Required: false
type: React.ReactNode
Displays error message and renders input in error state.
successMessage
Required: false
type: React.ReactNode
Displays success message and renders input in success state.
leftEl
Required: false
type: React.ReactNode
Displayes content on left side of the input, e.g. icon
rightEl
Required: false
type: React.ReactNode
Displayes content on right side of the input, e.g. icon
wrapperProps
Required: false
type: Props of "div"
Pass down properties to the element that wraps the input and icons.
noWrap
Required: false
type: boolean
When multiple elements are rendered, e.g. providing a label, the component will wrap the content with a FormGroup component for mroe consistent UI. pass noWrap={false} to disable the default behaviour.
...rest
Required: false
type: any
Other properties are passed down to the input element