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 Label component | 
name | String | Used for the for, id, and name attributes | 
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.