Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nuxt-modules/storybook
Storybook integration with Nuxt.
https://github.com/nuxt-modules/storybook
nuxt-module storybook
Last synced: 3 days ago
JSON representation
Storybook integration with Nuxt.
- Host: GitHub
- URL: https://github.com/nuxt-modules/storybook
- Owner: nuxt-modules
- Created: 2020-04-20T10:10:28.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-28T14:35:40.000Z (3 months ago)
- Last Synced: 2024-10-29T17:28:47.895Z (3 months ago)
- Topics: nuxt-module, storybook
- Language: TypeScript
- Homepage: https://storybook.nuxtjs.org
- Size: 8.66 MB
- Stars: 407
- Watchers: 19
- Forks: 95
- Open Issues: 39
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
![Nuxt Storybook](https://github.com/nuxt-modules/storybook/assets/904724/0396b16c-be9b-4b0d-83b5-5e35dd8298df)
# Nuxt Storybook
Integrate [Storybook](http://storybook.js.org) into your [Nuxt](https://nuxt.com) application.
## Installing
```
npx nuxi@latest module add storybook
```Update your `nuxt.config`:
```ts
modules: [
'@nuxtjs/storybook',
],
storybook: {
url: 'http://localhost:6006',
storybookRoute: '/__storybook__',
port: 6006,
},
```Then run `pnpm dev` to start your Nuxt server.
## Demo
https://github.com/storybook-vue/nuxt-storybook-module-demo
## Features
👌 Zero configuration to start (see video)
🪄 Access Storybook Terminal
🎨 Devtools tab with Storybook app
⚙️ Reference your Storybook config in your app
📦 Extendable by Nuxt modules
🚀 Supports Nuxt 3 / Storybook 8
## Nuxt 2
Nuxt 2 is supported with Storybook v6, you can check legacy code on the v4 branch.
## Contributing
1. Install dependencies with `pnpm`.
2. Run `pnpm dev:prepare` to generate stubbed `dist` directory.
3. Make your changes.
4. Run `pnpm lint` to verify that there are no issues (consider adding tests).
5. Submit a PR.## License
This repository is licensed under the [MIT License](LICENSE). Feel free to use the code and modify it according to your needs.
## Contacts :
🔖 Mail: [email protected]
💬 Discord: ChakAs3
🐦⬛ Twitter: [@ChakirQatab](https://twitter.com/ChakirQatab)
## Sponsors
Thanks to [Chromatic](https://www.chromatic.com/) for providing the visual testing platform that helps us review UI changes and catch visual regressions.