Skip to content
Theme UI
GitHub

Field

Wrapper around primitive form control components

import { Field } from 'theme-ui'

Props

NameTypeDescription
asComponentform control to render, default Input
labelStringText for Label component
nameStringUsed 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.

Edit the page on GitHub
Previous:
Embed
Next:
Flex