Blockquote
Blockquote sets a quoted passage apart from the text around it with a line and an indent.
A blockquote sets a passage of text apart with a thin line down its leading edge and an indent that keeps the words clear of the line.
Use a blockquote for a quoted passage, such as a customer quote in an article or an excerpt from a document. Use a Notice when a coloured bar must carry a meaning, such as a warning, and use a Card when the content needs a boundary.
The text works like Text. size is a step on the type scale and defaults to 3, weight defaults to regular, and emphasis defaults to loud, because a quote is text that people read.
tone colours the words and leaves the line grey. The line always has the same colour as a Separator, in light and dark mode.
A blockquote adds no margin of its own, so the layout around it sets the space. To credit the source, put the name in a sibling Text, use render to make the layout a <figure> and the name a <figcaption>, and pass the source address as cite.
Props
Generated from the types. It lists what this component DECLARES: a prop that arrives from a shared type or from the platform is real and is not repeated here.
| Prop | Type | What it does |
|---|---|---|
className? | string | Your classes, appended to the ones this component resolves rather than replacing them. |
emphasis? | "loud" | "medium" | "quiet" | The emphasis level of the text, which sets its colour. |
render? | RenderElement | Renders the quote as a different element. |
size? | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | The text size step, from 1 to 9. |
style? | React.CSSProperties | Inline styles, merged last, so your value wins over anything the component resolved. |
tone? | "neutral" | "accent" | "destructive" | "blue" | "green" | "orange" | "amber" | "pink" | "purple" | "success" | "warning" | "info" | The colour family of the text, such as destructive. |
weight? | "regular" | "medium" | "semibold" | The font weight: regular, medium or semibold. |
It also takes every prop of a <blockquote>.
- A coloured line ā A tone colours the words and leaves the line grey, so a blockquote never looks like a warning. If a condition needs a coloured bar, use a Notice.
- An attribution slot ā An attribution needs no special behaviour, so a sibling
Textdoes the same job. It also lets you choose the size and colour of the name.