@nx/react:component-story
Generate storybook story for a react component.
Generate storybook story for a react component.
nx generate component-story ...
By default, Nx will search for component-story
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nx/react:component-story ...
Show what will be generated without writing to disk:
nx g component-story ... --dry-run
Relative path to the component file from the library root.
The project where to add the components.
true
Set up Storybook interaction tests.
false
Skip formatting files.