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

32 lines
999 B
Plaintext

"use client";
// src/table-row-group.tsx
import { forwardRef } from "react";
import { useDOMRef } from "@heroui/react-utils";
import { clsx, mergeProps } from "@heroui/shared-utils";
import { useTableRowGroup } from "@react-aria/table";
import { jsx } from "react/jsx-runtime";
var TableRowGroup = forwardRef((props, ref) => {
var _a;
const { as, className, children, slots, classNames, ...otherProps } = props;
const Component = as || "thead";
const domRef = useDOMRef(ref);
const { rowGroupProps } = useTableRowGroup();
const theadStyles = clsx(classNames == null ? void 0 : classNames.thead, className);
return /* @__PURE__ */ jsx(
Component,
{
ref: domRef,
className: (_a = slots.thead) == null ? void 0 : _a.call(slots, { class: theadStyles }),
...mergeProps(rowGroupProps, otherProps),
children
}
);
});
TableRowGroup.displayName = "HeroUI.TableRowGroup";
var table_row_group_default = TableRowGroup;
export {
table_row_group_default
};