@cerberus-design/react
Version:
The Cerberus Design React component library.
41 lines (39 loc) • 859 B
JavaScript
import {
Caption,
TableEl,
TableRoot,
TableTrigger,
Tbody,
Td,
Tfoot,
Th,
Thead,
Tr
} from "./chunk-SITE2UML.js";
import {
Show
} from "./chunk-NUXMADXV.js";
// src/components/table/table.tsx
import { jsx, jsxs } from "react/jsx-runtime";
function TableRootEl(props) {
const { sticky, caption, ...rootProps } = props;
return /* @__PURE__ */ jsx(TableRoot, { ...rootProps, "data-sticky": sticky ?? false, children: /* @__PURE__ */ jsxs(TableEl, { children: [
/* @__PURE__ */ jsx(Show, { when: caption, children: /* @__PURE__ */ jsx(Caption, { children: caption }) }),
rootProps.children
] }) });
}
var Table = {
Root: TableRootEl,
Caption,
Header: Thead,
HeaderCol: Th,
Body: Tbody,
Row: Tr,
Cell: Td,
Footer: Tfoot,
Trigger: TableTrigger
};
export {
Table
};
//# sourceMappingURL=chunk-236F7MCH.js.map