Label
The label of a form field.
Examples
Loading examples…
Props
| Prop | Type | Description |
|---|---|---|
text | string | number | Label text |
htmlFor | string | |
color | string | One of default|prose|primary|emphasis|secondary|tertiary|success|info|warning|caution|danger|discovery or a CSS color |
size | "3xs" | "2xs" | "xs" | "sm" | "md" | "lg" | Default "sm" |
fontWeight | "normal" | "medium" | "semibold" | "bold" | Default "medium" |
textAlign | "start" | "center" | "end" | |
truncate | boolean | |
width | number | string |