UNPKG

@teamsparta/stack-bottom-sheet

Version:
40 lines (36 loc) 971 B
"use client"; import { titleCss } from "./chunk-CJOZ64D5.mjs"; import { __objRest, __spreadProps, __spreadValues } from "./chunk-FUJQIYOF.mjs"; // src/compounds/BottomSheetTitle.tsx import { Text } from "@teamsparta/stack-text"; import { vars } from "@teamsparta/stack-tokens"; import { forwardRef } from "react"; import { Drawer } from "vaul"; import { jsx } from "@emotion/react/jsx-runtime"; var BottomSheetTitle = forwardRef( (_a, ref) => { var _b = _a, { children, font = "subTitle2", color = vars.text.primary } = _b, restProps = __objRest(_b, ["children", "font", "color"]); return /* @__PURE__ */ jsx(Drawer.Title, { asChild: true, children: /* @__PURE__ */ jsx( Text, __spreadProps(__spreadValues({ ref, as: "h2", font, color, css: titleCss }, restProps), { children }) ) }); } ); BottomSheetTitle.displayName = "BottomSheetTitle"; export { BottomSheetTitle };