Files
NapCatQQ/.pnpm-store/v3/files/60/886dfe2d1486efc2be05df31b58e21f6ca2d0e8da1cdd61e5b19b5a665d424ff7738be61aa5e6ec10edcddfe20f2a41de13861b5b5b8e9b3cfca12ab7322c2
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

26 lines
893 B
Plaintext

"use client";
import {
useCardContext
} from "./chunk-XHGGCEVJ.mjs";
// src/card-header.tsx
import { forwardRef } from "@heroui/system";
import { useDOMRef } from "@heroui/react-utils";
import { clsx } from "@heroui/shared-utils";
import { jsx } from "react/jsx-runtime";
var CardHeader = forwardRef((props, ref) => {
var _a;
const { as, className, children, ...otherProps } = props;
const Component = as || "div";
const domRef = useDOMRef(ref);
const { slots, classNames } = useCardContext();
const headerStyles = clsx(classNames == null ? void 0 : classNames.header, className);
return /* @__PURE__ */ jsx(Component, { ref: domRef, className: (_a = slots.header) == null ? void 0 : _a.call(slots, { class: headerStyles }), ...otherProps, children });
});
CardHeader.displayName = "HeroUI.CardHeader";
var card_header_default = CardHeader;
export {
card_header_default
};