Field
View Source
Composes InputLabel and passes an id
to the first child to pair labels and controls automatically.
Select at least one choice, Name cannot be blank
Props
Accepts Box props.
Use the field
key in ThemeProvider
to customize the default properties of this component.
ReactReactNode
Usually accepts form fields, such as input
or select
.
boolean
Renders label and field[s] smaller.
number
Controls distribution between fields, by passing this prop to StackView. (Defaults to “fill”.)
string
Helpful text to accompany fields.
string | ReactReactNode
Renders content into a HelperDrawer next to label.
any
Places an icon to the left of the label.
boolean
Renders label and field[s] inline.
ReactRef
Gain access to the internal ref.
string | ReactReactNode
Label that describes field[s].
string | number
Label flex basis.
string
Label color.
string | number
Label flex grow.
number
Controls spacing between fields.
'success' | 'error'
State of field[s].