Build slides as React components. Version control with Git, style with Tailwind, and present from your Next.js 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 zero to presenting in under a minute.
Add Slide-CN to your Next.js project with a single command.
pnpm dlx shadcn@latest add @slide-cn/slide-cn-defaultCreate a deck using React components. Each slide is a component.
<Deck>
<Slide>
<SlideTitle>
My Presentation
</SlideTitle>
</Slide>
</Deck>Run your Next.js app and present directly from the browser.
pnpm devStart building presentations the way you build software.