3.0.18 • Published 10 months ago

nuxt-stories v3.0.18

Weekly downloads
31
License
MIT
Repository
github
Last release
10 months ago

npm npm npm.io npm.io NPM

📖 Release Notes

nuxt-stories

Painless (and now insanely fast) storybooking for Nuxt

Video overview

Features

  • ✅ Insanely fast configuration and usage (one install, one line in config, and you're good to go!)
  • ✅ Live markdown editing and previewing directly on the UI! Faster than Hot Module Reloading!
  • ✅ Stories that get written on the UI get auto saved back to the filesystem (local dev only)
  • ✅ Easily toggle the view mode in the stories header.
  • ✅ Instant compiling of vue components as you type them on the UI!
  • ✅ Ordering of stories using story frontMatter.
  • ✅ Instant updating of table of contents as you type the headers
  • ✅ Auto importing of components. Just place components in your components directory and just use them!
  • ✅ Emoji support! Don't believe it? Just look at this bulleted list!
  • ✅ Built-in json viewer. Just type <json :data="[your data]"/> to see the tree.
  • ✅ The perfect development tool for rapidly jotting down notes, gameplans, or even writing official documentation! Documentation that is also functional.
  • ✅ Built-in fetch. Quickly fetch on the client or server side, right in your story! (v2.0.13+)
  • ✅ Component-browser and style-editor with direct tie-in to Google fonts.

Demo

See it in ACTION: DEMO @ Netlify (Ctrl+Click for new tab)

Setup

  1. Add nuxt-stories dependency to your project
  • Nuxt 3.x
npm i -D nuxt-stories@next
  • Nuxt 2.x
npm i -D nuxt-stories

You may also need to install the following deps if they didn't get installed when you first created your nuxt app:

After installing, a postinstall script will run to "gently copy" sample stories, assets, and layout(s) to your workspace to get you setup asap. It will also create a "components" directory if it doesn't already exist.

  1. Add nuxt-stories to the buildModules section of nuxt.config.js
{
  buildModules: [
    'nuxt-stories'
  ],
  stories: {
    /* stories options here */
  }
}
  1. There is no step 3! You're good to go! Try it out!
npm run dev

Then view your stories running on your local dev server: http://localhost:3000/stories

All the stories that you edit there will get auto saved back to project root/stories/language. Read on to learn more. More explanation will follow.

3.0.18

10 months ago

3.0.16

1 year ago

3.0.17

1 year ago

3.0.15

1 year ago

3.0.14

2 years ago

3.0.12

2 years ago

3.0.4

2 years ago

3.0.13

2 years ago

3.0.3

2 years ago

3.0.10

2 years ago

3.0.2

2 years ago

3.0.11

2 years ago

3.0.1

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

3.0.0

2 years ago

2.5.0

2 years ago

3.0.9

2 years ago

2.0.17

3 years ago

2.0.16

3 years ago

2.0.15

3 years ago

2.0.14

3 years ago

2.0.13

3 years ago

2.0.12

3 years ago

2.0.11

3 years ago

2.0.10

3 years ago

2.0.9

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago