0.1.2 • Published 9 months ago
storybook-addon-rslib v0.1.2
storybook-addon-rslib
Usage
- Install the addon
pnpm add storybook-addon-rslib -D
- Add it to
main.js
export default {
addons: ['storybook-addon-rslib'],
}
or with config
export default {
addons: [
{
name: 'storybook-addon-rslib',
options: {
// Check options section.
},
},
],
}
Options
export interface AddonOptions {
rslib?: {
/**
* `cwd` passed to loadConfig of Rslib
* @default undefined
*/
cwd?: string
/**
* `path` passed to loadConfig of Rslib
* @default undefined
*/
configPath?: string
/**
* The lib config index in `lib` field to use, will be merged with the other fields in the config.
* Set to a number to use the lib config at that index.
* Set to `false` to disable using the lib config.
* @experimental subject to change at any time
* @default 0
*/
libIndex?: number | false
}
}
0.1.2
9 months ago