Examples
Example projects for yak with Next.js, Vite, TanStack Start, Rsbuild, Solid and Storybook, ready to clone and run from the GitHub repository.
Every example lives in the examples folder of the
repository and uses the same setup that the docs describe. The examples use the packages from the repository, so
build them once in the repository root:
pnpm install
pnpm build && pnpm build:swcThen run pnpm dev in an example folder to start it.
React
- Next.js: examples/next-js is an App
Router app with theming through
yak.context.ts. It runs on webpack withpnpm devand on Turbopack withpnpm dev:turbo. - Vite: examples/vite is a plain React app
with the
viteYakplugin. See the Vite guide for the setup. - TanStack Start: examples/tanstack-start
runs
viteYaknext to TanStack Start with React Server Components enabled. - Rsbuild: examples/rsbuild uses the
pluginYakplugin from@yak/react/rsbuild. See the Rsbuild guide for the setup.
Solid
- Vite + Solid: examples/vite-solid
uses
@yak/solidwith Solid 2 and theyakplugin from@yak/solid/vite.
Storybook
- Storybook: examples/storybook has
one setup for the Vite builder and one for the webpack builder, both with the
@yak/storybookaddon. Start them withpnpm storybook:viteorpnpm storybook:webpack. See the Storybook guide for the setup.