@teamsparta/stack-custom-modal
Version:
stack custom modal
47 lines (43 loc) • 916 B
JavaScript
"use client";
import {
__objRest,
__spreadProps,
__spreadValues
} from "./chunk-FUJQIYOF.mjs";
// src/compounds/CustomModalButton.tsx
import { Button } from "@teamsparta/stack-button";
import { forwardRef } from "react";
import { jsx } from "@emotion/react/jsx-runtime";
var CustomModalButton = forwardRef(
(_a, ref) => {
var _b = _a, {
children,
variant = "solid",
colorScheme = "primary",
size = "md",
fullWidth = true
} = _b, restProps = __objRest(_b, [
"children",
"variant",
"colorScheme",
"size",
"fullWidth"
]);
return /* @__PURE__ */ jsx(
Button,
__spreadProps(__spreadValues({
ref,
variant,
colorScheme,
size,
fullWidth
}, restProps), {
children
})
);
}
);
CustomModalButton.displayName = "CustomModalButton";
export {
CustomModalButton
};