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,188
questions
0
votes
0
answers
6
views
How do I add a global variable to a singular Storybook doc file?
I want to generate a dynamic piece of code that can be copied based on a setting that is changed in the toolbar. Changing the setting in the toolbar will change the code that the user can copy.
I am ...
0
votes
0
answers
8
views
Has anyone successfully been able to make a cross platform package for React Native and React that is a Design System using rollupjs and styled compon
Has anyone successfully created a cross-platform package for React Native and React that serves as a Design System using RollupJS and styled-components?
I know it's possible to build and style ...
0
votes
0
answers
11
views
react-select-async-paginate: (0 , import_use_lazy_ref.useLazyRef) is not a function
I have a custom react component build on storybook. I am using import Select, { components } from 'react-select'; and import { AsyncPaginate, withAsyncPaginate } from 'react-select-async-paginate';
...
0
votes
1
answer
121
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
16
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
18
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 ...
-1
votes
0
answers
26
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
16
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
24
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 ...
0
votes
0
answers
25
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
58
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 ...
1
vote
0
answers
21
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
48
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
18
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
37
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/...