UNPKG

@teamsparta/stack-bottom-sheet

Version:
48 lines (44 loc) 1.07 kB
"use client"; import { descriptionCss } from "./chunk-ALWYKHLT.mjs"; import { __objRest, __spreadProps, __spreadValues } from "./chunk-FUJQIYOF.mjs"; // src/compounds/BottomSheetDescription.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 BottomSheetDescription = forwardRef( (_a, ref) => { var _b = _a, { children, font = "bodyCompact", color = vars.text.tertiary } = _b, restProps = __objRest(_b, [ "children", "font", "color" ]); return /* @__PURE__ */ jsx(Drawer.Description, { asChild: true, children: /* @__PURE__ */ jsx( Text, __spreadProps(__spreadValues({ ref, as: "p", font, color, css: descriptionCss }, restProps), { children }) ) }); } ); BottomSheetDescription.displayName = "BottomSheetDescription"; export { BottomSheetDescription };