Using tagName from Custom Elements Manfiest to populate ArgTypes in Storybook 10 #32917
Replies: 1 comment 1 reply
-
|
Hi @hasanirogers! I'm Dosu and I’m helping the storybook team. In Storybook 10, the To show full CEM metadata in your docs, you need to:
There is no built-in way in Storybook 10 MDX to use a tagName string directly for ArgTypes. If you need to display more than what Storybook infers, you can manually define or extend This is not a bug, but a change in intended usage and documentation for Storybook 10 [issue]. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I upgraded to Storybook 10 (web-components-vite) and my mdx files stopped working. I traced the problem to how I'm using the
ofprop on theArgTypesblock. I'm doing:Where
kemet-tooltipis the tagName of the web component. The docs say to giveofa CSF export but when I do thisArgTypesonly displays information in the story. I want it to display all the information in CEM. Events, Custom Properties, etc.Is this a bug or am I doing something wrong?
Repo: https://raw.githubusercontent.com/hasanirogers/kemet-ui/refs/heads/v4.0.0/src/stories/docs/button.docs.mdx
ArgTypes with a tagName worked in 9x.
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions