Layout

Grid

A grid places cards or blocks side by side. Use the :::grid directive anywhere in a slide, or the grid layout to turn every block after the title into a cell.

Live demo

Click the deck, then use ← → · 2 slides · 00:16Open fullscreen →

Syntax

MarkdownMarkdown
:::grid{cols=3} :::card ### Lorem ::: :::card ### Ipsum ::: :::card ### Dolor ::: :::
MarkdownMarkdown (grid layout)
--- layout=grid cols=2 # Grid layout :::card ### Lorem ipsum ::: :::card ### Dolor sit amet :::
MDXMDX
<Grid cols={3}> <Card title="Lorem">Ipsum dolor sit amet.</Card> <Card title="Ipsum">Consectetur adipiscing elit.</Card> </Grid>

Attributes and props

AttributeTypeDefaultDescription
cols1 | 2 | 3 | 42Number of columns

More than 4 cards (or more than 3 columns) triggers a density warning, see the density rules on docs.recit.dev.

In other formats

FormatStatusNotes
deckAvailableRendered in slides, the presenter console and the HTML and PDF exports.
docsAvailableThrough <StoryEmbed slug="…" /> in any page of a site.
motionAvailableAnimated block in a film.
reportPlanned · P6Section of a paged report.
toonPlanned · P7Panel of a vertical strip.
bookPlanned · P8Block of a printable chapter.
Last modified on