Usage

import { FormField, TextInput } from '@loomhq/lens'
<FormField
label="Name"
labelFor="name"
errorMessage="Some error message"
>
<TextInput id="name" />
</FormField>

Direction

Use direction="row" for Checkbox, Radio, and Switch.

With error

Some error message

Examples

Form elements

Props

name
type
default
direction
'row' | 'column'
'column'
label
string
errorMessage
string
labelFor
string
children
React.ReactNode