Slides demo
Slide 1 of 000:00
@heyramzi/ui/slides
One canvas, any screen.
Design in 960 by 540 pixels. The deck scales to fit a phone, a laptop or a projector.
Right arrow or space to go on.
Reveals
Press once and one thing appears.
Walk it by hand
An arrow press shows one step. After the last, the next slide.
Back undoes a step
Going back lands on the earlier slide fully shown.
Shared steps stagger
Rows that share a step arrive one after another.
Print shows them all
A PDF has no keyboard. It shows every step.
Keys
Press O to see the whole deck.
Click a slide to jump to it. Escape closes the grid.
- Next
- →SpacePgDn
- Back
- ←Shift SpacePgUp
- First or last
- HomeEnd
- Overview
- O
- Fullscreen
- F
- Presenter
- P
Themes
Retheme with variables.
Ink, paper or the system setting. The package brings no brand of its own.
.deck {
--deck-accent: #ff4d8d;
--deck-font-display: 'Space Grotesk';
--deck-pad: 72px;
} Ground Text
Data
Or write the deck as data.
A registry maps each slide type to a layout. Bring your own schema if you want one.
const cover = defineSlideType({
type: 'cover',
label: 'Cover',
layout: CoverLayout,
});
<Deck {...deck} {registry} /> { "id": "q3", "title": "Q3 review",
"canvas": { "w": 960, "h": 540 },
"slides": [{ "id": "a", "type": "cover",
"content": { "title": "Q3" } }] }Presenter view and print
Notes in one window, the audience in another.
Both windows follow the same slide. Print the page and every canvas gets its own page, steps shown.
Slide 1 of 0