UNPKG

@teamsparta/stack-custom-modal

Version:
50 lines (46 loc) 991 B
"use client"; import { captionCss } from "./chunk-YJGPPUJG.mjs"; import { __objRest, __spreadProps, __spreadValues } from "./chunk-FUJQIYOF.mjs"; // src/compounds/CustomModalCaption.tsx import { Text } from "@teamsparta/stack-text"; import { vars } from "@teamsparta/stack-tokens"; import { forwardRef } from "react"; import { jsx } from "@emotion/react/jsx-runtime"; var CustomModalCaption = forwardRef( (_a, ref) => { var _b = _a, { children, font = "captionM", color = vars.text.quaternary, align = "center" } = _b, restProps = __objRest(_b, [ "children", "font", "color", "align" ]); return /* @__PURE__ */ jsx( Text, __spreadProps(__spreadValues({ ref, as: "p", font, color, align, css: captionCss }, restProps), { children }) ); } ); CustomModalCaption.displayName = "CustomModalCaption"; export { CustomModalCaption };