Quote
The PR mock's soft quote box (the request page's "What the brand asked for": the brand's own message): a <blockquote> on the soft grey, radius 16, padding 16, 14px ink text in quotes, with an optional cite line. It sets no outer margin: a Card spaces it 16px from its neighbours.
import { Quote } from '@ergasti/bricks';Examples
A quoted message
The brand's own words in a soft box, in quotes (the PR request page's "What the brand asked for"); the text sets its own direction.
Code
import { Quote } from '@ergasti/bricks';
function Basic() {
return <Quote>We want to push our winter jackets before the holidays. 30 sales in December, cash for the top sellers.</Quote>;
}With who said it
cite adds a muted line under the words; marks={false} prints text that brings its own quotation marks as given.
Code
import { Quote } from '@ergasti/bricks';
function CiteAndMarks() {
return (
<div style={{ display: 'grid', gap: 16 }}>
<Quote cite="Nile Threads · Today, 09:14">Can we run this for two weeks only?</Quote>
<Quote marks={false} cite="نايل ثريدز · النهارده">«عايزين نبيع ٣٠ جاكيت في ديسمبر، والمكافأة كاش لأعلى البياعين.»</Quote>
</div>
);
}Props
Prop
Type
Design guidance
How the BRICKS design system uses Quote. Written in docs/content/components/Quote.md; the props above are read from the code, which wins where the two disagree.
A soft grey quote box for someone else's words (a brand's request, a creator's note), with optional attribution; use it wherever the page shows a message verbatim.
It is the PR Portal mock's request-page box "What the brand asked for": a <figure> with a <blockquote> on --soft, radius 16, padding 16, 14px ink text wrapped in straight double quotes, and an optional 13px cite line. It sets no outer margin: inside a Card it is spaced 16px from its neighbours.
Anatomy
- Figure:
figure.kit-quote,--soft, radius 16, padding 16, 14px--ink, wraps anywhere. - Quote:
blockquote[dir=auto], the text between"…"marks (unlessmarks={false}). - Cite (optional):
figcaption[dir=auto], 13px--ink-3, 6px under the quote.
Variants
| Prop value | Look | When to use |
|---|---|---|
marks (default true) | "…" around the words (same glyph both sides, so it reads right in Arabic) | Plain message text. |
marks={false} | No added marks | Text with its own marks (Arabic «…»). |
cite | Attribution line | "Nile Threads · Today, 09:14". |
States
Static. Long or unbroken text wraps (overflow-wrap: anywhere). An empty cite (null, false, '') draws no caption.
Usage
// PR Portal › Approvals › brand request page
<Card title="What the brand asked for">
<Quote cite="Nile Threads · Today, 09:14">
We want to push our winter jackets before the holidays. 30 sales in December, cash for the top sellers.
</Quote>
<KpiGrid columns={3}>
<Tile size="kpi" tone="sky" label="Orders" value="1,284" />
…
</KpiGrid>
</Card><Quote marks={false}>«عايزين نبيع ٣٠ جاكيت في ديسمبر، والمكافأة كاش لأعلى البياعين.»</Quote>Where it appears
- In the v3 mocks: PR Portal › brand request page › "What the brand asked for" (PrApprovals / PrBrandDetail screens).
Guidelines
Do
- Show the message exactly as sent; put who and when in
cite.
Don't
- Don't use it for your own UI copy or tips; use
Banneror a muted paragraph. - Don't add quote marks to text that already has them.
RTL and Arabic
- Direction comes from the text itself, not the page. Use
marks={false}with Arabic guillemets «…».
Tokens
--soft, --ink, --ink-3.
Accessibility
- Semantic
figure/blockquote/figcaption, so the source is tied to the quote. dir="auto"on quote and caption so a message in Arabic or English reads in its own direction.
Found in the source
- No roles, ARIA attributes or key handling are set in this component's own source; it renders native elements and the components it composes.
Read from the component's source and tests. See Accessibility for the patterns the library follows.
Related
Banner: system messages.MessagePreview(PR): a composed message preview.ActivityLog: a detail box per event.
See also: Accordion · Card · HeroCard · KeyValue
Source
src/kit/patterns/Quote.tsx (line 21) on GitHub.