FormRow
A responsive field grid. Fields in one line share label, description and control rows, so their controls line up.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A responsive field grid.
Accessibility
Always render a visible <label> (the label prop wires htmlFor/id for you). Errors set aria-invalid and are announced via aria-describedby. Required fields expose aria-required.
Install and import
npx shadcn@latest add @prism/form-row
import { FormRow } from '@/components/prism/FormRow';
In a no-build prototype, read it from the bundle instead: const { FormRow } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
columns | 1 | 2 | 3 | — | Columns on wide screens (collapses to 1 under 640px). Default 2. |