Skip to content
Typography

Blockquote

server24.5 kB
@stellaria/nebula-webBlockquoteProps

Preview

Props

7
PropTypeDefault

children

ReactNode

—

cite

The attribution, set apart under the quote in a `cite`. Nothing renders there without it, so styling the slot through `citeProps` alone will not bring the line back.

ReactNode

—

className

Composes with the classes `Box` computes instead of replacing them.

string

—

color

The accent, drawn from the 500 step of this scale. It tints the rule down the leading edge and the `icon` with it — the quote's own text keeps reading as body copy either way.

ColorExtended"primary"

component

The element it paints. It is a real `blockquote` by default, which is what marks the passage as quoted rather than merely indented.

(ElementType & C)"blockquote"

icon

An opening glyph. Its presence is what switches the layout to two columns, and it is rendered `aria-hidden`, so it can only ever decorate the quote — never carry part of it.

ReactNode

—

reveal

Animates the element in when it first scrolls into view. `true` takes the catalogue entrance; an object tunes it — `preset`, `distance`, `spring`, `duration`, `once`, `amount`, `rootMargin` and `index` for a stagger. It lives here rather than on each surface so that `Card`, `Paper`, `GradientBorder`, `Section` and anything else built on `Box` inherit one implementation. Without it `Box` stays a server component; with it the root swaps for a client shell and the children keep rendering on the server. The entrance is a CSS transition, not a JavaScript animation: it is the only motion in the catalogue that fires WHILE the user scrolls, and the compositor should own it.

boolean | UseRevealOptions

—

Slot props

3

Each one spreads over an inner element, so you can restyle a region without forking the component.

PropTypeDefault

citeProps

The attribution. Only rendered with `cite`, and it goes in a `cite`.

TextSlotProps

—

contentProps

The box wrapping `children` and the attribution. Always rendered.

BoxSlotProps

—

iconProps

The glyph. Only rendered with `icon`; it is `aria-hidden`, and its presence switches the layout to two columns.

BoxSlotProps

—

Also accepts

On top of its own props, this component forwards these groups.

Style props · 128