UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

58 lines (57 loc) • 2.53 kB
import { jsx } from "react/jsx-runtime"; import { cn } from "../../lib/utilities.js"; import table_module from "./table.module.js"; import * as __rspack_external_react from "react"; const Table = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("div", { className: table_module.container, children: /*#__PURE__*/ jsx("table", { ref: ref, className: cn(table_module.table, className), ...props }) })); const TableHeader = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("thead", { ref: ref, className: cn(table_module.header, className), ...props })); const TableBody = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tbody", { ref: ref, className: cn(table_module.body, className), ...props })); const TableFooter = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tfoot", { ref: ref, className: cn(table_module.footer, className), ...props })); const TableRow = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("tr", { ref: ref, className: cn(table_module.row, className), ...props })); const TableHead = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("th", { ref: ref, className: cn(table_module.head, className), ...props })); const TableCell = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("td", { ref: ref, className: cn(table_module.cell, className), ...props })); const TableCaption = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx("caption", { ref: ref, className: cn(table_module.caption, className), ...props })); Table.displayName = "Table"; TableHeader.displayName = "TableHeader"; TableBody.displayName = "TableBody"; TableFooter.displayName = "TableFooter"; TableRow.displayName = "TableRow"; TableHead.displayName = "TableHead"; TableCell.displayName = "TableCell"; TableCaption.displayName = "TableCaption"; export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow }; //# sourceMappingURL=table.js.map