Field
Understand the design system and contribute to it
Component preview
The live preview for UI components is handled by components/atoms/codedocs/ComponentPreview.tsx. Use it directly inside MDX whenever you want a playground-style embed. Provide componentProps to set default values and propOptions to surface toggle-able props next to the preview.
Prop reference
Auto-generated from the component source
Field
classNameorientation= "vertical"
React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>
FieldContent
className
React.ComponentProps<"div">
FieldDescription
className
React.ComponentProps<"p">
FieldError
classNamechildrenerrors
React.ComponentProps<"div"> & { errors?: Array<{ message?: string; } | undefined>; }
FieldGroup
className
React.ComponentProps<"div">
FieldLabel
className
React.ComponentProps<typeof Label>
FieldLegend
classNamevariant= "legend"
React.ComponentProps<"legend"> & { variant?: "legend" | "label"; }
FieldSeparator
childrenclassName
React.ComponentProps<"div"> & { children?: React.ReactNode; }
FieldSet
className
React.ComponentProps<"fieldset">
FieldTitle
className
React.ComponentProps<"div">