Component Showcase
This page is both a live demo and a copy-paste reference. Everything here works in any .md or .mdx file, with no imports.
Callouts (admonitions)
:::note[Optional title]
Useful background information.
:::
Note – background information.
Tip – a faster or better way.
Info – neutral supporting detail.
Caution – can produce misleading results if overlooked.
Danger – destructive or irreversible actions.
Tabs
- npm
- Yarn
- pnpm
npm install
npm start
yarn install
yarn start
pnpm install
pnpm start
Tabs that share a groupId stay in sync across the whole site and remember the reader's choice.
Code blocks
Every block has a copy button, syntax highlighting, an optional title, line numbers and highlighted lines.
export function adoptionBenefit(baseline: number, scenario: number): number {
return ((baseline - scenario) / baseline) * 100;
}
{
"scenario": "EV Adoption",
"pollutant": "PM2.5",
"rateOfAdoption": 50
}
- rateOfAdoption: 0
+ rateOfAdoption: 50
Cards
<CardGrid columns={2}>
<Card icon="map" title="Map controls" to="/docs/user-manuals/uc1/tour/map-controls">Short description.</Card>
</CardGrid>
A clickable card with a Lucide icon.
Omit to for a non-clickable card.
Available icon names live in src/components/icons.ts.
Expandable sections
Click to expand
Hidden content can contain Markdown, lists and code.
- Item one
- Item two
Steps
<Steps>
<Step title="First">Do this.</Step>
<Step title="Second">Then this.</Step>
</Steps>
- FirstDo this.
- SecondThen this.
Badges and keyboard keys
Default Success Info Warning DangerPress Ctrl + F to search.
Screenshot placeholder
Describe the capture that belongs here