IFFDAYIFFDAYDesign
Controls

Field

A label, a control and a hint make a field; Fieldset and Form group fields into a form.

import { Field, Fieldset, Legend, Form } from '@iffday/ui';

Field

Field stacks a label, a control and a hint: the label is 13px and medium weight, the hint is secondary text. Base UI ties the label to the control, so a screen reader reads the label as the control’s name.

Use 1–30 letters, numbers, underscores or periods. Your preferred casing is retained. Do not start or end with a period, or use consecutive periods. Other users may reuse a previous handle.

Form

Form checks constraints such as required and pattern before it submits, and the browser points at the field that fails. Group related fields in a Fieldset named by a Legend. After a save, tell the reader with a toast: Save in the example below shows Saved.

My profile

Props

Exports BaseFieldset.Root as it is, with Base UI’s props (see the Base UI documentation).

Other props go to ComponentProps<'legend'>.