A boilerplate template for creating fast and robust design systems ✨ with Stencil, Storybook, Vite and TypeScript
MIT License
A boilerplate template for creating fast and robust design systems for React, Remix, Next.js, Vue, Angular or Vanilla JS Application ✨ with Stencil, Storybook, Vite and TypeScript.
Monorepo setup with Lerna according to the documentation at: stenciljs.com/output-targets
For Storybook, we use the most commonly used integration for web components with Lit, Vite and TypeScript, so you
already have a basic implementation of buttons, headers etc. Lit is not required and therefore basically
optional. When writing stories for web components built with Stencil, you don't have to use it, but you can, if you
want, perform more advanced operations using the HTML tag for example.
Alternatively, Storybook can also be reinstalled with npx storybook@latest init
with another integration-template.
To start using this boilerplate, clone this repo to a new directory:
git clone https://github.com/artursopelnik/stencil-storybook-boilerplate.git
npm install
cd /packages/core
and build it with: npm run build
. To generate a new component, run:npm run generate <sub-folder>
cd /packages/storybook
npm run storybook.run
to monitor only the stories for changes in Storybook.npm run storybook
to also watch for changes in the web component itself.💼 Linkedin @artursopelnik
MIT © Artur Sopelnik