quote
Quote
A sentence someone else said, with their name underneath. For your own caveat, use Callout.
- use it
- Good for one sentence someone else said, with a name under it.
- instead
- Your own caveat is Callout.
attributed
by is the name. source is muted after it. No frame title.
A thousand barely audible voices all singing in tune.
import { Quote } from "@/registry/default/quote/quote"
<Quote by="Paul Graham" source="Taste for Makers">
A thousand barely audible voices all singing in tune.
</Quote>install
command
titled
Pass title when the quote belongs to a section.
Good design is as little design as possible.
import { Quote } from "@/registry/default/quote/quote"
<Quote title="PRINCIPLE" by="Dieter Rams">
Good design is as little design as possible.
</Quote>| Prop | Type | Default | Description |
|---|---|---|---|
| by | string | — | Who said it. Drawn after an em dash. |
| source | string | — | Where. Muted, after the name. |
| title | string | — | Optional frame title. Off by default. |
| children | ReactNode | — | Markdown. The quote itself. |
| corner | string | "+" | Character at each corner of the frame. |
| frame | "box" | "corners" | "rule" | "none" | "box" | box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content. |
| className | string | — | Passed to the outer frame. |