Git Product home page Git Product logo

Comments (5)

farnabaz avatar farnabaz commented on May 26, 2024

This integrator is loading all nuxt plugins in the main.js. But there is no possibility for the user to filter or add new plugins.

from storybook.

adamskeeled avatar adamskeeled commented on May 26, 2024

Hey @farnabaz ! That does seem to indeed load the nuxt modules plugins, but doesn't make them available in the Storybook scope. For example, if I have the @nuxt/vuetify module and wrap <v-app> around my stories, Storybook doesn't recognize that element making everything inside the component break. This currently only works if I add <v-app> inside the component itself and that doesn't seem reasonable to have

from storybook.

farnabaz avatar farnabaz commented on May 26, 2024

That does seem to indeed load the nuxt modules plugins, but doesn't make them available.

Actually, nuxt modules are loaded by storybook runtime and are available in the Storybook. But for sure Storybook does not support all of the Nuxt features.

For example, if I have the @nuxt/vuetify module and wrap <v-app> around my stories, Storybook doesn't recognize that element making everything inside the component break.

<v-app> does not provide by @nuxt/vuetify and in a nuxt project, you have to put this tag inside your pages or simply in your layouts. Inside the storybook, pages and layouts do not render and these forces to wrap your stories with <v-app>.

from storybook.

adamskeeled avatar adamskeeled commented on May 26, 2024

v-app doesn't get provided by the nuxt module itself, but it's provided by the Vuetify dependency in it. And it's possible to have vuetify inside the Storybook scope. I already tried it in a simple Storybook app (not using this module) where vuetify would get added inside Storybook via a global decorator where v-app then became available to use in stories

from storybook.

rlam3 avatar rlam3 commented on May 26, 2024

Is there a recommended approach on how to get font-awesome and nuxt storybook working together with tailwindcss? I'm looking for an example repo but don't seem to find this anywhere in the documentation.

from storybook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.