Labelshadcn
Names a form control.
Inputs- Install
- npx shadcn add label
- Import from
- @/components/ui/label
- Guidance
- draft · v0.1.0
Examples
As installed from shadcn – rendering in jsp-ds tokens through the bridge.
Guidance
When to use
- To name a control, linked with
htmlFor. Inside a form, FieldLabel does the same and lays out the field.
Rules
- Every control has a visible label. Placeholders are not labels.
- Labels are nouns or short questions, sentence case, no colon.
Install
Terminal
npx shadcn add labelImport
import { Label } from "@/components/ui/label"From shadcn’s own registry. Don’t edit the installed file – jsp-ds styles it through the bridge, and fixes go in styles/overrides.css with an issue.