Skip to main content

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 bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
columns1 | 2 | 3—Columns on wide screens (collapses to 1 under 640px). Default 2.