@uva-glass/component-library
Version:
React components UvA
35 lines (34 loc) • 1.07 kB
JavaScript
import { jsx as t } from "react/jsx-runtime";
import { Accordion as e } from "./Accordion.js";
import { Container as i } from "../../storyComponents/Container/Container.js";
const c = "<Accordion title={title} content={content}/>", a = {
title: "Atoms/Accordion",
component: e,
argTypes: {
expanded: {
// Hide the expanded prop. Changing the value in Storybook doesn't update the state of the component.
table: {
disable: !0
}
}
},
parameters: {
inspectComponent: e,
codeString: c
}
}, o = (n) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ t(e, { ...n }) }), l = o.bind({});
l.args = {
title: "Example title",
content: "Example content"
};
const r = o.bind({});
r.args = {
title: /* @__PURE__ */ t("div", { style: { fontWeight: "bold" }, children: "Complex sample title" }),
content: /* @__PURE__ */ t("div", { style: { fontStyle: "italic" }, children: "Complex sample content" })
};
export {
l as AccordionExample,
r as WithComplexProps,
a as default
};
//# sourceMappingURL=Accordion.stories.js.map