Generate Storybook Component Story Format (*.stories.js) from the components — an argTypes controls panel derived from each element’s attributes (string-literal unions become select options) and events (mapped to actions), with zero hand-written story code.
| Argument | Description |
|---|---|
<files...> | Component source files to analyze. |
| Option | Description |
|---|---|
-o, --out-dir <dir> | Directory to write the stories to. (default: .) |
--import-path <path> | Module imported per story so the element registers (default ./{tag}.js). |
$ banira stories src/*.ts -o storiesPair with @storybook/web-components;
in .storybook/preview.js, call setCustomElementsManifest(manifest) (from a
banira manifest-generated custom-elements.json) for richer auto-docs.