Blockquote
@stellaria/nebula-webBlockquotePropsPreview
Props
6| Prop | Type | Default |
|---|---|---|
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 | — |
Slot props
3Each one spreads over an inner element, so you can restyle a region without forking the component.
| Prop | Type | Default |
|---|---|---|
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.