Label

The label of a form field.

Examples

Loading examples…

Props

PropTypeDescription
textstring | numberLabel text
htmlForstring
colorstringOne 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"
truncateboolean
widthnumber | string

Link to Label · All standard components

On this page