storybook
Installation
SKILL.md
Storybook
These conventions hold for any renderer. How a render or a decorator builds its markup and how meta is typed belong to the framework's component skill (react-component, nanoviews-component), and the renderer API to its own skill (nanoviews-storybook) or the Storybook docs. The components themselves follow ui-component.
The examples import the config types from @storybook/your-framework and the story API from @storybook/your-renderer, the way the Storybook docs write it. Put the project's packages there: @storybook/react-vite and @storybook/react, or @nanoviews/storybook-vite and @nanoviews/storybook.
Setup
.storybook/
main.ts the framework and the stories glob
preview.ts what every story gets: global styles, parameters, globals, decorators
preview.css styles of the preview frame alone (optional)
// .storybook/main.ts
import type { StorybookConfig } from '@storybook/your-framework'