365体育足球滚球比分

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 app), and interactively develop and test components.

Filter by
Sorted by
Tagged with
0
votes
0answers
33 views

Could not find a declaration file for module (x) implicitly has 'any' type, when importing npm package

I've created a Typescript, React project that makes use of Storybook.js, that contains all of my components, styling and images for the project I'm working on. I package this project with the help of ...
0
votes
1answer
15 views

Can't compile sass while using Vue Storybook

I'm trying to create storybook on vue. My components written using sass. So, I made this in .storybook/main.js: webpackFinal: (config) => { config.module.rules.push({ test: /\.s[...
0
votes
0answers
10 views

Vue Storybook doesn't compile with Pug components

I am trying to add storybook to my project, which written using pug. Unfortunately, storybook stops to compile if I create story with component on pug. If I change template lang to html (and template ...
0
votes
0answers
14 views

Errors while creating stories for a React component in a Next.js + Flow Setup

I'm trying to create stories (for storybook version 6.0.0-beta.37) for a component (called Editor) within a complex web-application involving React, Next.js, the Flow transpiler and many more. There's ...
0
votes
0answers
11 views
+100

Import .stories file into another .stories file with Storybook?

Can you import one .stories file into another .stories with Storybook? Eg I have /component1/component1.tsx /component1/component1.stories.tsx /component2/component2.tsx /component2/component2.stories....
0
votes
0answers
25 views

Extract custom properties assigned to a React Functional Component

I am creating a React library and want to document the custom class names that can be applied to my components using Storybook docs in a .mdx format. I am trying to assign a property called ...
0
votes
0answers
7 views

Storybook stories disappear when hot module reloading occurs

When I edit a component and hot module reloading occurs then all the other stories with the same title disappear. The only one still there is the story for the component that I just edited. In ...
0
votes
0answers
14 views

Storybook Angular - Inject NgControl

I have the following Class : export class TestComponent implements OnInit, ControlValueAccessor { constructor( @Optional() @Self() public ngControl: NgControl) { if (ngControl) { ...
0
votes
1answer
25 views

Use global scss with storybook

I am new in Storybook. I have a .scss file used in global. I want to import this file from storybook. So I made .storybook/config.js file and import scss inside. but it shows me error. Error ERROR in ....
0
votes
0answers
16 views

@storybook/addon-controls: howto not auto-generate control for a certain prop

@storybook/addon-controls is fun, however I cannot find a way to disable control generation for a given arg. Lets say I have a component prop that is an event handler and I obviously do not want it to ...
0
votes
0answers
6 views

Use antd for React together with Storybook v5

Now, I am stuck for several hours trying to make Storybook work with antd in my new React application (created with create-react-app), without success. Whatever I do, Storybook does not take the ...
3
votes
0answers
30 views

How to access vanilla class instance stored from one Vue component in a parent component?

I have a parent component with 2 child components that both inherit from the same base component. (This parent component is being created and used in a Vue Storybook). Both SiblingAComponent and ...
0
votes
1answer
13 views

React Native - Storybook Adding Addons

I am using a boilerplate Ignite Bowser and I am trying to add Knob Addon to storybook, but so far I cant make it to work. On the story, I added a decorator like the following code: storiesOf("...
1
vote
0answers
23 views

storybook-readme does not load .md

I'm trying to use the storybook-readme addon and it does not render the readme file content. This is my configuration: .storybook/preview.js .storybook/main.js TextInput.stories.js I have to ...
0
votes
1answer
16 views

How do i disable docs for a storybook page

I am using storybook to document the components i am developing. I am using Docs addons to document the components. The issue i am facing is that i have some pages for which i do not want the docs to ...

15 30 50 per page
1
2 3 4 5
41