UNPKG

@teamsparta/stack-custom-modal

Version:
22 lines (18 loc) 645 B
"use client"; import { __objRest, __spreadProps, __spreadValues } from "./chunk-FUJQIYOF.mjs"; // src/compounds/CustomModalTrigger.tsx import * as Dialog from "@radix-ui/react-dialog"; import { forwardRef } from "react"; import { jsx } from "@emotion/react/jsx-runtime"; var CustomModalTrigger = forwardRef((_a, ref) => { var _b = _a, { children, asChild = true } = _b, restProps = __objRest(_b, ["children", "asChild"]); return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadProps(__spreadValues({ ref, asChild }, restProps), { children })); }); CustomModalTrigger.displayName = "CustomModalTrigger"; export { CustomModalTrigger };