Labels or other single-line text adjacent to other components on the same row.
Used for displaying counts and small body copy. Avoid unless explicitly used in a design, since it's harder to read than a default medium size.
This is a default size, that's used for most copy on the page.
Used on onboarding pages, where larger fonts and component sizes are used. There may be other limited use cases beyond onboarding pages. Try to stick to a default medium size when possible.
Use the monospace variant for displaying monospaced text. This may be used for data references.
Use the numeric variant for displaying numerical data. If you need to show a code example, use code instead.
When text content comes from users, it's often too long to fit in the UI.
To avoid breaking the layout, truncate the overflowing text with an ellipsis (…).
isMonospace prop for displaying numerical data. If you need to show a code example, use code instead.medium for a primary column in the table.semibold to highlight small amounts of text inside a paragraph. Avoid highlighting entire sentences or paragraphs.uppercase text transform and wide letter spacing are reserved for use in table headers. You shouldn't use them directly.| Name | Default | Description |
|---|---|---|
isTruncated | false | booleanTruncate overflowing text with an ellipsis if needed. |
children | — | ReactNodeText. |
size | "md" | "sm" | "md" | "lg"Font size. |
fontWeight | "normal" | "normal" | "medium" | "semibold"Font weight |
letterSpacing | "normal" | "normal" | "wide"Letter spacing. |
variant | undefined | undefined | "numeric" | "monospace"Variant |