@cerberus-design/react
Version:
The Cerberus Design React component library.
47 lines (45 loc) • 930 B
JavaScript
import {
Button
} from "./chunk-JIEN2PM7.js";
// src/components/cta-dialog/trigger-item.tsx
import { css, cx } from "styled-system/css";
import { ark } from "@ark-ui/react/factory";
import { button } from "styled-system/recipes";
import { jsx } from "react/jsx-runtime";
function TriggerItem(props) {
const { asChild, children, ...buttonProps } = props;
if (asChild) {
return /* @__PURE__ */ jsx(
ark.div,
{
className: cx(
button({
shape: "rounded",
usage: "ghost"
}),
css({
w: "1/2"
})
),
asChild: true,
children
}
);
}
return /* @__PURE__ */ jsx(
Button,
{
...buttonProps,
className: css({
w: "1/2"
}),
shape: "rounded",
usage: "outlined",
children
}
);
}
export {
TriggerItem
};
//# sourceMappingURL=chunk-3X6VM5FS.js.map