Server Component · 0 KB client JS

Blockquote

A quotation block with an accent rule and optional attribution.

The cosmos is within us. We are made of star-stuff. We are a way for the universe to know itself.Carl Sagan, Cosmos

Import#

import { Blockquote } from "astralis-ui";

Variants#

plain is just the leading rule; subtle adds a tinted panel. The rule recolors via the borderColor Box prop.

plain: a leading rule and nothing else.
subtle: the rule plus a tinted panel behind the quote.
The rule color is just a Box prop. Recolor it with borderColor.

Attribution#

cite renders a visible attribution line (an actual <cite> element); citeUrl sets the semantic cite attribute for machines:

<Blockquote cite="Carl Sagan, Cosmos" citeUrl="https://en.wikipedia.org/wiki/Cosmos_(Sagan_book)">
  The cosmos is within us.
</Blockquote>

Props#

Blockquote extends Box:

PropTypeDefaultDescription
variant"plain" | "subtle""plain"The leading rule alone, or the rule on a tinted panel. Responsive.
citeReactNodeNoneVisible attribution, rendered under the quote in a cite element.
citeUrlstringNoneURL of the source, set as the blockquote element's native cite attribute.