UNPKG

@uva-glass/component-library

Version:

React components UvA

60 lines (59 loc) 1.48 kB
import { jsx as t, jsxs as a, Fragment as l } from "react/jsx-runtime"; import { fn as s } from "../../index-DXR-TB1d.js"; import { BrowserRouter as c } from "react-router"; import { LinkButton as n } from "./LinkButton.js"; const d = ` // Has all HTMLAnchorElement props available except "className" and "style" <LinkButton variant={variant} to={to} replace={replace} buttonRef={buttonRef}>{children}</LinkButton> `, k = { title: "Atoms/Buttons/LinkButton", component: n, argTypes: { variant: { options: [ "primary", "secondary", "destructive-primary", "destructive-secondary", "blank", "blank-subtle", "blank-icon" ], control: { type: "radio" } } }, parameters: { inspectComponent: n, codeString: d } }, r = (o) => /* @__PURE__ */ t(c, { children: /* @__PURE__ */ t(n, { ...o }) }), i = { variant: "primary", onClick: s() }, p = r.bind({}); p.args = { children: "Click me!", ...i }; const e = r.bind({}); e.args = { ...i, children: /* @__PURE__ */ a(l, { children: [ /* @__PURE__ */ t("div", { children: "Child 1" }), /* @__PURE__ */ t("div", { children: "Child 2" }) ] }) }; e.argTypes = { ...e.argTypes, children: { table: { disable: !0 // Disable children controls for this specific story } } }; export { p as LinkButtonExample, e as WithMultipleChildren, k as default }; //# sourceMappingURL=LinkButton.stories.js.map