Field
Wrapper around primitive form control components
import { Field } from 'theme-ui'
Props
| Name | Type | Description | 
|---|---|---|
| as | Component | form control to render, default Input | 
| label | String | Text for Labelcomponent | 
| name | String | Used for the for,id, andnameattributes | 
All other props are passed directly to the form control.
Variants
The Field component uses the same variants as the other form components that it is composed of.