Label

Renders an accessible label associated with form controls.

Loading...

Installation

$npx shadcn@latest add @craftdotui/craftui-label

Anatomy

<Label htmlFor="email">Email</Label>
<LabelRoot htmlFor="email">Email</LabelRoot>

Demo

With Checkbox

Loading...

Required

Loading...

Disabled

Loading...

Props

Label

Prop
Type
Default