wcb/storybook/.storybook/preview.js
Ayo 2da6cd5afc
Some checks are pending
Tests / Unit (push) Waiting to run
Tests / E2E (push) Waiting to run
feat: new cem analyzer plugin (cem-plugin)
2026-07-19 21:06:22 +02:00

16 lines
553 B
JavaScript

import { setCustomElementsManifest } from '@storybook/web-components-vite'
import manifest from '../custom-elements.json'
// This single line is what turns the manifest into autodocs + inferred
// controls. Without the wcb CEM plugin the manifest has no `attributes` at
// all, so every story would have to hand-write `argTypes`.
setCustomElementsManifest(manifest)
/** @type {import('@storybook/web-components-vite').Preview} */
export default {
parameters: {
docs: { toc: true },
controls: { expanded: true },
},
tags: ['autodocs'],
}