Field
Field composes form label, description, error, and input building blocks.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/field-controls.json.
Usage
Examples
Controls in fields
Validation errors
Fieldsets of choices
Fields that reflow by width
Preferences form that checks itself
Label accessories
Inline edit
API
14 props
Accessibility
Field keeps label, input, description, and error markup colocated so form controls can be wired with id/htmlFor.
Related
InputText, search, numeric and date inputs with prefix and suffix slots.11 examplesSelectSelect renders a styled option picker with searchable combobox behavior and multi-select support.20 examplesInputOtpOne-time code entry with grouped slots, paste support and completion feedback.1 exampleTooltipBrief contextual help attached to an independently labelled control.4 examplesCheckboxCheckbox renders a token-styled binary control.6 examplesRadioGroupChoose one option using native radio controls or selectable cards.5 examples