Skip to content
InsightCharts

Search

Search guides and components

Quote with figure

A pull-quote paired with the statistic or small chart that backs it up, side by side and stacking in narrow containers.

Use when
A quotation shown next to the number it refers to: an interview finding with its survey figure, an executive's statement with the metric. One per section.
Avoid when
A quote with no evidence (use pull quote); a figure that needs axes to read (use chart with callout and put the quote in prose); unattributed quotations.

Preview

“Solar met more than half of demand on 41% of summer afternoons in 2024. We do not have enough storage for the midday surplus yet.”

Marta KellerGrid planner, quoted in the 2024 system adequacy review

Source: National grid operator, hourly generation data · Illustrative data

Composition

Built from

The pieces quote with figure renders or expects in its slots.

Atoms

3

A featured statistic with its label, change and the context that gives it meaning.

A word-sized line or bar series without axes, with the latest point marked.

Used in

No template lists quote with figure in its composes. It still fits any slot that takes a component.

Installation

$ pnpm dlx shadcn@latest add @insightcharts/quote-figure

The CLI copies the source into your project and needs the @insightcharts registry in components.json; see installation. With the package, import it by name:

import { QuoteFigure } from "insightcharts";

Examples

Evidence on the left, statistic only

“Most of the customers who left told us they stopped at the second screen of setup.”

Dana WhitfieldHead of customer research

Props

PropTypeDefaultDescription
quoterequiredstringThe words quoted, without quotation marks.
attributionstringWho said it.
rolestringTheir role, or where it was said.
citestringSource URL, linked from the attribution.
stat{ value, label, context?, delta?, deltaLabel?, upIsGood?, format? }The statistic that backs the quote up; takes the props of big-number.
figureSlotA small chart or figure instead of, or under, the statistic: a spec or a React element.
side"left" | "right""right"Side the evidence sits on; under 640px it goes underneath.
sourcestringShown underneath as "Source: ...".
notestringMethod note or caveat.
themeThemeInputTheme override, passed on to the quote and the figure.
mode"auto" | "system" | "light" | "dark""auto"Colour mode.