Norbert de Langen 6e54389c24 Update framework template index files to export core Storybook package functionality
Add exports for respective Storybook framework packages across multiple framework templates, including HTML, Preact, React, Server, Svelte, Vue3, and Web Components for both Vite and Webpack5 configurations
2025-03-07 15:24:21 +01:00
..
2022-07-21 11:24:07 +02:00
2024-06-04 22:53:21 +02:00
2024-07-08 15:06:09 +01:00
wip
2024-07-03 13:21:00 +02:00

Storybook for HTML


Storybook for HTML is a UI development environment for your plain HTML snippets. With it, you can visualize different states of your UI components and develop them interactively.

Storybook Screenshot

Storybook runs outside of your app. So you can develop UI components in isolation without worrying about app specific dependencies and requirements.

Getting Started

cd my-app
npx storybook@latest init -t html

For more information visit: storybook.js.org

Typescript

npx sb init will select .ts starter stories if your package.json has typescript as a dependency. If starting a new project, run npm init and npm install typescript --save-dev before initializing storybook to get the typescript starter stories.


Storybook also comes with a lot of addons and a great API to customize as you wish. You can also build a static version of your Storybook and deploy it anywhere you want.