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

39 lines
1.2 KiB
Plaintext

"use client";
// src/table-header-row.tsx
import { forwardRef } from "@heroui/system";
import { useDOMRef, filterDOMProps } from "@heroui/react-utils";
import { clsx, mergeProps } from "@heroui/shared-utils";
import { useTableHeaderRow } from "@react-aria/table";
import { jsx } from "react/jsx-runtime";
var TableHeaderRow = forwardRef((props, ref) => {
var _a, _b;
const { as, className, children, node, slots, classNames, state, ...otherProps } = props;
const Component = as || "tr";
const shouldFilterDOMProps = typeof Component === "string";
const domRef = useDOMRef(ref);
const { rowProps } = useTableHeaderRow({ node }, state, domRef);
const trStyles = clsx(classNames == null ? void 0 : classNames.tr, className, (_a = node.props) == null ? void 0 : _a.className);
return /* @__PURE__ */ jsx(
Component,
{
ref: domRef,
...mergeProps(
rowProps,
filterDOMProps(node.props, {
enabled: shouldFilterDOMProps
}),
otherProps
),
className: (_b = slots.tr) == null ? void 0 : _b.call(slots, { class: trStyles }),
children
}
);
});
TableHeaderRow.displayName = "HeroUI.TableHeaderRow";
var table_header_row_default = TableHeaderRow;
export {
table_header_row_default
};