Field
Compose accessible form fields with labels, descriptions, and validation messages.
Preview
Installation
npx shadcn@latest add https://ui.saturation.io/r/field.jsonUsage
import {
Field,
FieldContent,
FieldDescription,
FieldError,
FieldGroup,
FieldLabel,
FieldLegend,
FieldSeparator,
FieldSet,
} from "@/components/ui/field"Examples
With Textarea
Write a short introduction about yourself.
With Select
Select your department or area of work.
With Slider
Set your budget range ($200 - $800).
With Checkbox
Your Desktop & Documents folders are being synced with iCloud Drive.
With Radio Group
With Switch
Enable multi-factor authentication for added security.
Field Group
Responsive Layout
With Validation
API Reference
Field
The core wrapper for a single field with orientation control.
orientation?: "vertical" | "horizontal" | "responsive"
FieldSet
Semantic fieldset container for grouping related fields.
FieldLegend
Legend element for a FieldSet with variant options.
variant?: "legend" | "label"
FieldGroup
Layout wrapper that stacks Field components and enables container queries.
FieldContent
Flex column that groups label and description together.
FieldError
Displays validation error messages with proper styling.
errors?: Array<{ message?: string }>
On This Page
Deploy your Saturation UI app
Build beautiful, saturated interfaces with our component library.
Deploy to Vercel for the best performance and developer experience.