Structure
The gap between saying and doing: a column for each category, the share that said they would in the ink and the share that did over its foot in paper, with the title on the left and the text on the right.
Live, with its default content. It's drawn at 1920 by 1080 and scales to fit, so it lays out the same at every size. Grid lays the slide grid over it.
The same content in every tone: paper, Cüte ink and the pitch's colour fields. The accent, the numbered circles and the wave follow the tone.
light
dark
green
pink
blue
purple
grey
What the slide holds, read from its schema. Every field has a default, so it renders whole with none set.
| Prop | Type | Default | Description |
|---|---|---|---|
| bars | { did, label, said }[] | 5 items | Two to six categories, each a column: what share said they would, in the ink, and over its foot what share did, in paper. |
| bars[].did | number | — | The share that did it, in percent. |
| bars[].label | string | — | The category, 2 words at most. |
| bars[].said | number | — | The share that said they would, in percent. |
| legend | { did, said } | { … } | The two bars' names, in pills under the title. |
| legend.did | string | — | What the paper bar counts, 3 words at most. |
| legend.said | string | — | What the ink bar counts, 3 words at most. |
| note | string | "Illustrative figures." | Where the figures come from, set small under the text, 10 words at most. Leave empty for none. |
| text | string | "Most people have something they would sell seco…" | The text in the right column, a few short paragraphs split by a blank line, 60 words at most. |
| title | string | "Wanting to sell vs. actually listing" | The title in the top left, 6 words at most. |
| tone | "light" | "dark" | "green" | "pink" | "blue" | "purple" | "grey" | "pink" | The slide's colour: light (paper), dark (Cüte ink), or one of the pitch's fields: green, pink, blue, purple or grey. |
import { slideBySlug } from "@repo/ui-web/components/slides/registry";const gapBars = slideBySlug("gap-bars");// Every field is optional: what's left out falls back to its default.gapBars?.render( { bars: [ { did: 14, label: "Fashion", said: 68, }, { did: 9, label: "Electronics", said: 52, }, { did: 11, label: "Kids", said: 47, }, { did: 6, label: "Home", said: 41, }, { did: 4, label: "Sport", said: 33, }, ], legend: { did: "Listed it", said: "Would sell it", }, note: "Illustrative figures.", text: "Most people have something they would sell second-hand. Few of them list it.\n\nThe gap is the effort and the risk of a sale with a stranger, and it is widest where items are worth the most.", title: "Wanting to sell vs. actually listing", tone: "pink", }, { deck: { client: "Client", title: "Deck title" }, page: 48 });