Components
The building blocks of every Récit story. Each component has a Markdown directive form (works in
.md and .mdx) and a JSX form (.mdx only, no import needed). They ship in the
@recit/components package and are rendered by the deck format today.
Every page below shows the component live, in a small deck you can drive with the arrow keys.
Layout
Grid
:::grid{cols=3} · <Grid cols={3}>
Card
:::card · <Card title>
Columns
:::col :::left :::right · <Columns ratio>
Image
::image{src alt fit} · <Image>
Media
<Media src caption type>
Content
Cover
<Cover title subtitle author>
Points
<Points title items ordered>
Callout
:::callout{type title} · <Callout>
Badge & Kbd
:badge[…] :kbd[…] · <Badge> <Kbd>
Quote
> quote — author · <Quote>
Code
Shiki, :::code-group · <CodeBlock> <CodeGroup>
Interactive and extending
Step
:::step · <Step index>
Mermaid
```mermaid · <Mermaid chart>
Custom components
Your own React components in any story.
In other formats
Components are written once and rendered by every format that supports them.
| Format | Status | Notes |
|---|---|---|
deck | Available | Rendered in slides, the presenter console and the HTML and PDF exports. |
docs | Available | Through <StoryEmbed slug="…" /> in any page of a site. |
motion | Available | Animated block in a film. |
report | Planned · P6 | Section of a paged report. |
toon | Planned · P7 | Panel of a vertical strip. |
book | Planned · P8 | Block of a printable chapter. |
Writing guides, configuration and the CLI live on docs.recit.dev. Full example decks are on presentation.recit.dev.