Blockquote
The most dangerous phrase in the language is, "We've always done it this way."
A <blockquote> for quoted prose, with optional attribution.
Import
Section titled “Import”<script> import Blockquote from "@invisible-ui/svelte/Blockquote.svelte";</script><script setup> import { Blockquote } from "@invisible-ui/vue";</script>import { Blockquote } from "@invisible-ui/react";<script type="module"> import "@invisible-ui/elements/define";</script>
<ds-blockquote></ds-blockquote>In Elements:
<ds-blockquote cite="Leonardo da Vinci"> Simplicity is the ultimate sophistication.</ds-blockquote>| Prop | Type | Default | Description |
|---|---|---|---|
cite | string | Snippet | undefined | undefined | Attribution: text, or a snippet for rich content. |
citeUrl | string | undefined | undefined | Source URL (sets the cite attribute / links the attribution). |
| Prop | Type | Default | Description |
|---|---|---|---|
cite | string | undefined | Visible attribution text (e.g. an author). Use the cite slot for rich content. |
citeUrl | string | undefined | Machine-readable source URL, mapped to the native cite attribute (not displayed). |
Slots: cite, default.
| Prop | Type | Default | Description |
|---|---|---|---|
cite | ReactNode | — | Visible attribution, such as an author: text or markup. |
citeUrl | string | — | Machine-readable source URL, set as the native cite attribute (not shown). |
children | ReactNode | — | The quoted text. |
| Attribute | Reactive | Description |
|---|---|---|
cite | yes | the visible attribution |
cite-url | yes | the source URL |
Reactive attributes re-render the element when they change after the first render.
The quote is the children; cite takes plain text or a snippet.
Example
Section titled “Example”<Blockquote cite="Grace Hopper">We've always done it this way.</Blockquote>In React, cite takes text or markup:
<Blockquote cite="Grace Hopper">We've always done it this way.</Blockquote>Themeable via --ds-blockquote-*.