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

prop
type
default
required
direction
oneOf: "row", "column"
'column'
label
string
errorMessage
string
labelFor
string
children
node