Caption

Small secondary text: a hint under a control, or a label in a Row. `text` can have inline markdown.

Examples

Loading examples…

Props

PropTypeDescription
textstring | numberCaption text
colorstringOne of default|prose|primary|emphasis|secondary|tertiary|success|info|warning|caution|danger|discovery or a CSS color
size"sm" | "md" | "lg"Default "lg"
fontWeight"normal" | "medium" | "semibold" | "bold"Default "normal"
textAlign"start" | "center" | "end"
truncateboolean
maxLinesnumber

Link to Caption · All standard components

On this page