Text

Body text inside a Card or next to another component. A paragraph alone is markdown outside the fence. Use color "default" or "secondary". `text` can have inline markdown: **bold**, *italic*, ~~strike~~, ++underline++, `code` and [link](https://example.com). The `children` ids render inline after the text, for example a Badge.

Examples

Loading examples…

Props

PropTypeDescription
colorstringOne of default|prose|primary|emphasis|secondary|tertiary|success|info|warning|caution|danger|discovery or a CSS color
fontWeight"normal" | "medium" | "semibold" | "bold"
textAlign"start" | "center" | "end"
italicboolean
truncateboolean
maxLinesnumber
tabularNumsboolean
widthnumber | string
weightnumberflex-grow in a Row or Column
textstring | numberText with inline markdown. A bound number shows as text
size"3xs" | "2xs" | "xs" | "sm" | "md" | "lg"Default "md"
fontSizenumber | stringPixels when a number. Wins over size
lineHeightnumber | stringA unitless ratio, or CSS
minLinesnumberReserves the height of this many lines
strongbooleanDefault false
underlineboolean
lineThroughboolean
inlineboolean
preserveWhitespaceboolean
highlight"green" | "orange" | "pink" | boolean

Slots

  • children · multiple

Link to Text · All standard components

On this page