Forms
Input
Single-line text field in three sizes.
npx shadcn-svelte@latest add http://localhost:5173/r/input.json Sizes
sm 32 · default 40 · lg 48 — the same heights as buttons, so they line up in a row.
light
dark
States
Fields have no hover style (like native macOS/iOS fields). Focus turns the border accent and grows a soft halo out of it; invalid fields do the same in red.
light
Rest
Filled
Focus
Invalid
Invalid focus
Disabled
Read-only
dark
Rest
Filled
Focus
Invalid
Invalid focus
Disabled
Read-only
Types
Native types keep their keyboards and autofill. Numbers use tabular figures.
light
dark