@uva-glass/component-library
Version:
React components UvA
50 lines (49 loc) • 1.21 kB
JavaScript
import { jsx as t, jsxs as a, Fragment as s } from "react/jsx-runtime";
import { fn as l } from "../../index-DXR-TB1d.js";
import { Button as n } from "./Button.js";
const c = "<Button variant={variant} onClick={onClictFunction}>{children}</Button>", h = {
title: "Atoms/Buttons/Button",
component: n,
argTypes: {
variant: {
options: ["primary", "secondary", "destructive-primary", "destructive-secondary", "blank"],
control: { type: "radio" }
}
},
parameters: {
inspectComponent: n,
codeString: c
}
}, i = (o) => /* @__PURE__ */ t(n, { ...o }), e = {
variant: "primary",
disabled: !1,
displayColumn: !1,
onClick: l()
}, d = i.bind({});
d.args = {
children: "Click me!",
...e
};
const r = i.bind({});
r.args = {
...e,
children: /* @__PURE__ */ a(s, { children: [
/* @__PURE__ */ t("div", { children: "Child 1" }),
/* @__PURE__ */ t("div", { children: "Child 2" })
] })
};
r.argTypes = {
...r.argTypes,
children: {
table: {
disable: !0
// Disable children controls for this specific story
}
}
};
export {
d as ButtonExample,
r as WithMultipleChildren,
h as default
};
//# sourceMappingURL=Button.stories.js.map