Questions tagged [storybook]
Storybook is a development environment for JavaScript UI components. It allows you to browse a component library, view the different states of each component (isolated from the rest of your application), and interactively develop and test components.
storybook
2,193
questions
0
votes
0
answers
21
views
Unable to resolve "storybook/internal/preview-api" from "node_modules\@storybook\preview-api\shim.mjs"
I am a bit lost with all the expo and expo-cli tools and their local/global versions.
I have an expo react native project using storybook with the current package.json
{
"version": "1....
-1
votes
0
answers
14
views
In storybook, need to have select dropdown for color inside nested object
In storybook, I need to have select dropdown for color which is nested inside the object. I used addon-controls, but it is not working.
select dropdown with options for color
I tried with addon-...
0
votes
0
answers
17
views
How do I create a Story for a React component that wraps HTML in Storybook?
I'm new to React and have been trying to Google a solution to this for hours - I probably just don't know the right terminology.
I know I can create a Story for a React component by importing the ...
0
votes
0
answers
21
views
useHref() may be used only in the context of a <Router> component. Storybook and Remix
I have a Hydrogen v2 project that's using Remix.run and importing components from a storybook project.
I tried to implement this https://blog.sentiero.digital/how-to-run-remix-link-component-in-...
0
votes
0
answers
15
views
How to programmatically generate storybook stories?
I'm working on a library for visualization. There are lots of combination of configurations. I don't want to manually create the stories.
Imagine I have two options, show/hideLabel, show/hideAxis. ...
0
votes
0
answers
22
views
How to import storybook stories into cypress for component test with angular
I am trying to use storybook with cypress on an angular app for component testing .My need is to create stories for angular components and use them in cypress .In React we can use ComposeStories ...
-1
votes
0
answers
21
views
"args"' does not exist in type 'StoryProps'
I am using storybook with svelkit, and i got this error with latest storybook update that args does not exist in type StoryProps, Here is my storybook code, error is in when i am making story with ...
1
vote
0
answers
40
views
No able to upgrade storybook to 8.2.4
I am not able to upgrade the storybook to 8.2.4.
After upgrading storybook and run yarn storybook I keep having this issue(see Issue). I have removed the modules folders and I have updated my dev ...
0
votes
0
answers
17
views
react storybook not working with relative path import
I tried implement strory book to current react-typescript project. I installed storybook 8.2.2.
In the projects all import are made by absolute imports, such as src/components/Button, not by relative ...
1
vote
1
answer
43
views
How to run both storybook and cypress in headless mode
I am trying to use storybook and cypress for component testing with Angular framework .I am able to run test cases when storybook server and cypress are running separately but finding difficult to run ...
0
votes
0
answers
17
views
Expose Angular Kendo UI properties automatically in Storybook
I want to do something similar to what has been achieved in this article (https://www.telerik.com/blogs/how-i-built-this-kendoreact-storybook), except using Kendo Angular.
In the article the author ...
0
votes
0
answers
30
views
Build failed in Storybook webpack config caused by svg
this error occurs when launching storybook, all svg that i use in the application cause an error
in ./src/shared/assets/icons/about-20-20.svg ...etc
Module build failed (from ./node_modules/@svgr/...
0
votes
1
answer
157
views
Can't install Storybook into my Next.js app
I got TypeError trying to install Storybook in my Next.js app.
I got the Error:
`An error occurred while installing dependencies:
wnt.default is not a function
Error: TypeError: wnt.default is not a ...
0
votes
0
answers
23
views
How can I use path aliases in a library in a way that aliases are resolved when used by library consumers?
I am building a vue storybook component library with vite called my-storybook. I configed it to resolve alias @ to /src.
// .storybook/main.js
module.exports = {
// other configs
// ........
...
0
votes
0
answers
30
views
What is the compatible version of storybook addon theme?
I want to configure custom theme classes in my nx angular application. I just installed storybook version of 7.5.3 and storybook-addon-themes 6.1.0 which is latest version of custom theme ...