Forms
Form behaviour on the Core Field parts: validation with accessible errors, a summary that takes focus after a failed submit, values you edit in place and live character counts.
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/forms-api-key.json.
Usage
Examples
Developer · Create an API key
Launch · New app with live summary
Feedback · Article survey
Compliance · Business verification
Checkout · Address and payment
Contact · Message with error summary
Onboarding · Customer intake
Events · Registration with email code
Billing · Hosted checkout setup
Billing · Invoice with line items
Commerce · New product
Newsletter · Signup and preferences
Profile · Card with completion and office hours
Profile · Tabs with audit rail
Security · Sign-in policy
Support · Ticket details
Team · Invite with permissions
API
15 props
Accessibility
Errors sit next to their control, are linked with aria-describedby and mark it aria-invalid. The summary is an alert that receives focus and moves focus to a field from each link. EditableField returns focus to Edit after Save, Cancel or Escape.
Notes
- Lay out rows with FieldGroup and Field orientation=responsive; Forms adds behaviour, not layout.
Related
FieldField composes form label, description, error, and input building blocks.7 examplesInputText, 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 examplesNumberFieldNumeric entry with increment buttons, bounds, locale formatting and scrubbing.2 examplesCardCard frames reusable content with title, subtitle, and optional children.8 examplesBannerBanner renders a compact announcement strip.5 examples