Field
We recommend using Final Form, Redux Form or Formik with these components. If so, use ConnectedField
for your fields (as in the examples below). The examples below give you an overview of common props (e.g. size
, disable
, required
etc.)
You can find props for each field component in the other Fields
pages.
Install and import
Sizes
Variants
Disabled
Required
Properties
Name | Type(s) | Default | Required |
---|---|---|---|
children | node | ||
component | union | ||
type | string |
Dependencies
- - @welcome-ui/field-group^2.6.1
- - @welcome-ui/hint^2.1.3
- - @welcome-ui/label^2.1.3
- - @welcome-ui/system^2.0.2
- - polished^3.4.1
Peer dependencies
- - @xstyled/styled-components^1.17.0
- - @xstyled/system^1.17.0
- - react^16.10.2
- - react-dom^16.10.2
- - styled-components^4.0.0 || ^5.0.0