Storybook Harmony: Effortless RemixJS Integration Unleashed
I presented at MelbJS recently, where Kevin Yank from CultureAmp talked about their Storybook setup. One concept stuck with me: Storybook Driven Developme...
28 Dec 2023

I presented at MelbJS recently, where Kevin Yank from CultureAmp talked about their Storybook setup. One concept stuck with me: Storybook Driven Development (SDD) -- building components in Storybook first, then integrating them into the app.
I tried it on a RemixJS project. Here is what I found.
Setup
Getting Storybook into a Remix project is straightforward. One command does the heavy lifting:
npx storybook@latest init
It detected my ViteJS setup automatically. No manual config needed for the basics.
Customizing Stories
The default stories are boilerplate. I deleted them and wrote my own for a ChakraUI-based Button component.
import { Button } from "@chakra-ui/react"
The key insight: writing stories forces you to think about your component's API in isolation. What props does it actually need? What states should it handle? You answer those questions before the component ever touches a page.
Why This Matters
Storybook Driven Development changes how you build frontends. You catch design inconsistencies early. You document component behavior as you build. And you get a living component library for free.
The trade-off is an extra tool in your chain and stories that need maintaining. For larger teams and design systems, that cost is easily justified. For a solo project, it depends on how much you value documentation and visual testing.