@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! ⚡
173 lines • 4.84 kB
TypeScript
import * as React from "react";
/**
* Props for the {@link Table} component.
*/
export type TableProps = React.HTMLAttributes<HTMLTableElement>;
/**
* Props for the {@link TableHeader} component.
*/
export type TableHeaderProps = React.HTMLAttributes<HTMLTableSectionElement>;
/**
* Props for the {@link TableBody} component.
*/
export type TableBodyProps = React.HTMLAttributes<HTMLTableSectionElement>;
/**
* Props for the {@link TableFooter} component.
*/
export type TableFooterProps = React.HTMLAttributes<HTMLTableSectionElement>;
/**
* Props for the {@link TableRow} component.
*/
export type TableRowProps = React.HTMLAttributes<HTMLTableRowElement>;
/**
* Props for the {@link TableHead} component.
*/
export type TableHeadProps = React.ThHTMLAttributes<HTMLTableCellElement>;
/**
* Props for the {@link TableCell} component.
*/
export type TableCellProps = React.TdHTMLAttributes<HTMLTableCellElement>;
/**
* Props for the {@link TableCaption} component.
*/
export type TableCaptionProps = React.HTMLAttributes<HTMLTableCaptionElement>;
/**
* Wraps a table in a horizontally scrollable container.
*
* @remarks
* - Pure CSS component (no Base UI primitive)
* - Renders a `<table>` element inside a `<div>` container
* - Styling via CSS Modules with `--ac-*` custom properties
*
* @example
* ```tsx
* <Table>
* <TableHeader />
* </Table>
* ```
*
* @see {@link TableProps} for available props
*/
declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLTableElement>>;
/**
* Renders the table header section.
*
* @remarks
* - Pure CSS component (no Base UI primitive)
* - Renders a `<thead>` element
* - Styling via CSS Modules with `--ac-*` custom properties
*
* @example
* ```tsx
* <TableHeader>
* <TableRow />
* </TableHeader>
* ```
*
* @see {@link TableHeaderProps} for available props
*/
declare const TableHeader: React.ForwardRefExoticComponent<TableHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
/**
* Renders the table body section.
*
* @remarks
* - Pure CSS component (no Base UI primitive)
* - Renders a `<tbody>` element
* - Styling via CSS Modules with `--ac-*` custom properties
*
* @example
* ```tsx
* <TableBody>
* <TableRow />
* </TableBody>
* ```
*
* @see {@link TableBodyProps} for available props
*/
declare const TableBody: React.ForwardRefExoticComponent<TableBodyProps & React.RefAttributes<HTMLTableSectionElement>>;
/**
* Renders the table footer section.
*
* @remarks
* - Pure CSS component (no Base UI primitive)
* - Renders a `<tfoot>` element
* - Styling via CSS Modules with `--ac-*` custom properties
*
* @example
* ```tsx
* <TableFooter>
* <TableRow />
* </TableFooter>
* ```
*
* @see {@link TableFooterProps} for available props
*/
declare const TableFooter: React.ForwardRefExoticComponent<TableFooterProps & React.RefAttributes<HTMLTableSectionElement>>;
/**
* Renders a table row.
*
* @remarks
* - Pure CSS component (no Base UI primitive)
* - Renders a `<tr>` element
* - Styling via CSS Modules with `--ac-*` custom properties
*
* @example
* ```tsx
* <TableRow>
* <TableCell>Value</TableCell>
* </TableRow>
* ```
*
* @see {@link TableRowProps} for available props
*/
declare const TableRow: React.ForwardRefExoticComponent<TableRowProps & React.RefAttributes<HTMLTableRowElement>>;
/**
* Renders a header cell.
*
* @remarks
* - Pure CSS component (no Base UI primitive)
* - Renders a `<th>` element
* - Styling via CSS Modules with `--ac-*` custom properties
*
* @example
* ```tsx
* <TableHead scope='col'>Name</TableHead>
* ```
*
* @see {@link TableHeadProps} for available props
*/
declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
/**
* Renders a standard table cell.
*
* @remarks
* - Pure CSS component (no Base UI primitive)
* - Renders a `<td>` element
* - Styling via CSS Modules with `--ac-*` custom properties
*
* @example
* ```tsx
* <TableCell>Acme Inc.</TableCell>
* ```
*
* @see {@link TableCellProps} for available props
*/
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
/**
* Renders the table caption.
*
* @remarks
* - Pure CSS component (no Base UI primitive)
* - Renders a `<caption>` element
* - Styling via CSS Modules with `--ac-*` custom properties
*
* @example
* ```tsx
* <TableCaption>Recent invoices</TableCaption>
* ```
*
* @see {@link TableCaptionProps} for available props
*/
declare const TableCaption: React.ForwardRefExoticComponent<TableCaptionProps & React.RefAttributes<HTMLTableCaptionElement>>;
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
//# sourceMappingURL=table.d.ts.map