Forms

Field

Label, description and error, laid out and wired up for assistive tech.

npx shadcn-svelte@latest add http://localhost:5173/r/field.json

Wired up automatically

A Field gives its control an id, points the label at it, and lists the description and error in aria-describedby. An error marks the control invalid on its own.

light
dark

Form

FieldSet + Legend for sections, FieldGroup for spacing, a responsive Field that goes horizontal when the group is wide.

light
Profile
Optional
dark
Profile
Optional

Multiple errors

light
dark