Field
Labels, controls, help text, and errors composed into accessible form fields.
Installation
Install Field from the Fluid Effect UI registry.
Form
Input
Choose a unique username for your account.
Textarea
It grows with your text.
Select
Where you spend most of your week.
Checkbox
Choice card
Fieldset
Validation and errors
Enter a valid email address
- At least 8 characters
- One number
Horizontal
Used across the app and in emails.
Separator
Or continue with
API Reference
Types come from the public API. A dash indicates no default is documented here.
Field props
Public source| Prop | Type | Default |
|---|---|---|
key | string | — |
props.id | string | undefined | — |
props.disabled | boolean | undefined | — |
props.invalid | boolean | undefined | — |
props.described | boolean | undefined | — |
props.dirty | boolean | undefined | — |
props.filled | boolean | undefined | — |
orientation | FieldOrientation | 'vertical' |
className | string | — |
view | (parts: FieldParts) => View.Input<Msg, R> | Required |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
FieldLabel
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
htmlFor | string | — |
FieldError
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
errors | readonly ({ readonly message?: string; } | undefined)[] | [] |
FieldSet
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
FieldGroup
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
FieldContent
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
FieldLegend
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
variant | "label" | "legend" | 'legend' |
FieldTitle
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
FieldDescription
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |
FieldSeparator
Public source
| Prop | Type | Default |
|---|---|---|
children | View.Children<Msg, R> | — |
id | string | — |
className | string | — |
shape | ShapeVariant | 'rounded' |
size | SizeVariant | 'default' |
surface | number | 1 |