RE

React Webpack5

@storybook/react-webpack5

Storybook for React and Webpack: Develop, document, and test UI components in isolation

Component Libraries
storybook
storybook-framework
react
webpack
component
components
@storybook/react-webpack5
Component Libraries
javascript
npm
Stars
466
Weekly
2.3M
Open issues
6
Bundle
~25 kB

Installation

npm install @storybook/react-webpack5

Code example

import { Button } from "@storybook/react-webpack5";

export function Example() {
  return (
    <div className="flex gap-2">
      <Button>Primary</Button>
      <Button variant="outline">Secondary</Button>
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by ndelangen
  • 2.3M weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 6 open issues on GitHub

FAQs

Alternatives & similar libraries