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
Your public handle. Try a short one or add a space.
dark
Your public handle. Try a short one or add a space.
Form
FieldSet + Legend for sections, FieldGroup for spacing, a responsive Field that goes horizontal when the group is wide.
light
dark
Multiple errors
light
- At least 12 characters.
- Include a number or symbol.
dark
- At least 12 characters.
- Include a number or symbol.