You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// accordion.mdx
import { extractArgTypes } from'@astrouxds/storybook-addon-docs-stencil'import { Meta, Story, Canvas, ArgsTable } from'@storybook/blocks'import { html, render } from'lit-html'import*asAccordionStoriesfrom'./accordion.stories';
<Metaof={AccordionStories} />
# Accordion
An Accordion is a device which presents a set of summary items which can expose details based on each summary. An item can be expanded to reveal details, and collapsed to hide details.
## Guidelines*[Astro UXDS: Accordion](https://www.astrouxds.com/components/accordion/)exportconst Default = (args) => {
returnhtml`<div style="padding: 5%;"> <rux-accordion ?disabled="${args.disabled}" ?disallow-multiple="${args.disallowMultiple}" > <rux-accordion-item><div slot="label">Title 1</div><p>Content 1</p></rux-accordion-item> <rux-accordion-item><div slot="label">Title 2</div><p>Content 2</p></rux-accordion-item> <rux-accordion-item><div slot="label">Title 3</div><p>Content 3</p></rux-accordion-item> </rux-accordion></div>`
}
<Canvas>
<Storyof={AccordionStories.Default_} />
</Canvas>
The text was updated successfully, but these errors were encountered:
I have discussed that with @kasperpeulen and the reason why the components were not removed was a general anxiety of breaking existing references inside the mdx file. So removing the components from the MDX files might be potentially disruptive.
The
mdx-to-csf
codemod doesn't remove extracted components frommdx
files.Example:
Is transformed into:
And:
The text was updated successfully, but these errors were encountered: