wc-storybook-helpers
wc-storybook-helpers copied to clipboard
Helpers designed to make integrating Web Components with Storybook easier.
I have this piece in my CEM: ```json "events": [ { "name": "focus", "type": { "text": "Event" }, "description": "Emitted when the element has received focus." }, ``` The `argTypes`...
Hi, again, thanks for this helper library. It saves so much time documenting all our components. I have a reproducible 'bug' when setting a control back to its original state....
Hi @break-stuff , When creating a different attribute name vs a property name using Lit's `@property()` decorator, the property is picked up by Storybook docs, but the attribute is not....
## Context We have an input component, which has `custom-invalid` as an attribute. `custom-invalid` is controlled from storybook and when set, it sets `invalid` on the host from the inside...
Components which use `reflect: true`, when using the `@property` decorator or `this.setAttribute` result in unexpected behavior. To reproduce this: 1. Create a component that uses this pattern, for example use...
Storybook's `preview.ts` is set as follows. ```ts import { setCustomElementsManifest, type Preview, } from "@storybook/web-components"; import customElements from "/path/to/custom-elements.json"; setCustomElementsManifest(customElements); const preview: Preview = { parameters: { controls: { matchers:...
https://github.com/open-wc/custom-elements-manifest/pull/247#issuecomment-2098304521
First some background :) I'm using wc-storybook-helpers to add documentation to a component library that has multiple versions of components, i.e. we have legacy Polymer based components and new Lit...
like discussed on discord :) the idea is to be able to use custom jsdoc annotations to document things in storybook based on this work https://github.com/shoelace-style/shoelace/blob/dafb35c6e210193a9ca31efddc3429ba2bb66be3/custom-elements-manifest.config.js for example, we can...
Add the ability to disable a category's controls globally and at the component level.