Build slides as React components, install them through the shadcn registry, and present interactive decks straight from your app.
pnpm dlx shadcn@latest add @slide-cn/slide-cn-defaultPresentations as code, for everyone.
Slide-CN gives you the tools to build presentations the way you build software.
Write JSX. Get a presentation. The demo above is built with the code below.
import { Deck } from "@/components/ui/slide-cn/deck";
import { Slide } from "@/components/ui/slide-cn/slide";
import { TitleSlide } from "@/components/ui/slide-cn/title-slide";
import { GradientBackground }
from "@/components/ui/slide-cn/backgrounds/dark-mode-gradient";
export default function MyDeck() {
return (
<Deck>
<Slide background={<GradientBackground />}>
<TitleSlide>
<TitleSlide.Heading>
Why Slide-CN?
</TitleSlide.Heading>
<TitleSlide.SubHeading>
Presentations as code, for everyone.
</TitleSlide.SubHeading>
</TitleSlide>
</Slide>
<Slide>
<h2>Built with React</h2>
<p>Use any component you want.</p>
</Slide>
</Deck>
);
}From install to first working deck in a couple of minutes.
Add the default Slide-CN preset from the shadcn registry.
pnpm dlx shadcn@latest add @slide-cn/slide-cn-defaultCreate a deck using React components. Each slide is a component.
import { Deck } from "@/components/ui/slide-cn/deck";
import { Slide } from "@/components/ui/slide-cn/slide";
import { TitleSlide } from "@/components/ui/slide-cn/title-slide";
<Deck>
<Slide>
<TitleSlide>
<TitleSlide.Heading>My Presentation</TitleSlide.Heading>
<TitleSlide.SubHeading>Built with Slide-CN</TitleSlide.SubHeading>
</TitleSlide>
</Slide>
</Deck>Run your app and present directly from the browser.
pnpm devStart building presentations the way you build software.