Framework Compatibility
- @storybook/react:
@storybook/react
is tailored for React applications, supporting JSX, React hooks, and the component-based architecture of React. - @storybook/angular:
@storybook/angular
is specifically designed for Angular applications, supporting Angular's component architecture, modules, and dependency injection. - @storybook/html:
@storybook/html
is framework-agnostic, making it compatible with any HTML, CSS, or JavaScript code, including web components and static assets. - @storybook/vue:
@storybook/vue
is designed for Vue.js applications, supporting Vue's template syntax, directives, and component lifecycle. - @storybook/svelte:
@storybook/svelte
is built for Svelte applications, supporting Svelte's unique syntax, reactivity, and component structure.
Setup and Configuration
- @storybook/react:
@storybook/react
integrates well with Create React App and other React setups. It provides automatic configuration for Babel, Webpack, and supports TypeScript out of the box. - @storybook/angular:
@storybook/angular
requires Angular CLI for setup, with configuration files generated automatically. It supports Angular modules, decorators, and provides a seamless integration with Angular's ecosystem. - @storybook/html:
@storybook/html
has a minimal setup process, requiring only basic HTML and JavaScript files. Configuration is straightforward, making it easy to get started with web components or static UI elements. - @storybook/vue:
@storybook/vue
integrates smoothly with Vue CLI and Nuxt.js. It supports single-file components (SFCs) and provides configuration for Vuex, Vue Router, and TypeScript. - @storybook/svelte:
@storybook/svelte
requires a Svelte project setup, with configuration files generated automatically. It supports Svelte's file structure and integrates with Svelte's build tools.
Add-ons and Ecosystem
- @storybook/react:
@storybook/react
has a rich ecosystem of add-ons, including those for accessibility, documentation, theming, and more, specifically designed for React components. - @storybook/angular:
@storybook/angular
supports a wide range of add-ons, including accessibility, documentation, and testing tools, all tailored for Angular components. - @storybook/html:
@storybook/html
is compatible with many add-ons, especially those focused on accessibility, design systems, and web components, due to its framework-agnostic nature. - @storybook/vue:
@storybook/vue
supports a variety of add-ons, particularly those that enhance Vue development, including accessibility tools, documentation generators, and state management integrations. - @storybook/svelte:
@storybook/svelte
is growing its ecosystem of add-ons, with a focus on tools that enhance Svelte development, such as accessibility and documentation add-ons.
Documentation and Community Support
- @storybook/react:
@storybook/react
boasts extensive documentation, a large community, and numerous resources, tutorials, and third-party add-ons for React developers. - @storybook/angular:
@storybook/angular
has comprehensive documentation, tutorials, and a supportive community focused on Angular development. - @storybook/html:
@storybook/html
benefits from the broader Storybook community, with documentation and resources for web components and HTML-based projects. - @storybook/vue:
@storybook/vue
has well-maintained documentation, a strong community, and many resources available for Vue developers, including tutorials and example projects. - @storybook/svelte:
@storybook/svelte
is supported by a growing community of Svelte developers, with increasing documentation and resources available for Svelte and Storybook integration.