import { Body, BodyProps } from './table-body';
import { Cell, CellProps } from './table-cell';
import { Footer, FooterProps } from './table-footer';
import { Head, HeadProps } from './table-head';
import { Header, HeaderProps } from './table-header';
import { Root, RootProps } from './table-root';
import { Row, RowProps } from './table-row';
type TableProps = {
Root: RootProps;
Header: HeaderProps;
Body: BodyProps;
Footer: FooterProps;
Row: RowProps;
Head: HeadProps;
Cell: CellProps;
};
/**
* Table is a component for displaying data in a tabular format.
* It provides a set of composable components to build tables with headers, footers,
* rows, and cells.
*
* @component
*
* @example
* // Basic usage
*
*
*
* Name
* Email
* Role
*
*
*
*
* John Doe
* john@example.com
* Admin
*
*
*
*/
declare const Table: typeof Root & {
/**
* Header component for the table. Contains header rows and cells.
*
* @component
*
* @example
*
*
* Name
* Email
*
*
*/
Header: typeof Header;
/**
* Body component for the table. Contains the main data rows and cells.
*
* @component
*
* @example
*
*
* John Doe
* john@example.com
*
*
*/
Body: typeof Body;
/**
* Footer component for the table. Contains footer rows and cells.
*
* @component
*
* @example
*
*
* Total: 3 users
*
*
*/
Footer: typeof Footer;
/**
* Row component for organizing cells horizontally in the table.
*
* @component
*
* @example
*
* John Doe
* john@example.com
*
*/
Row: typeof Row;
/**
* Head component for table header cells. Used within Table.Header rows.
*
* @component
*
* @example
* Name
*/
Head: typeof Head;
/**
* Cell component for displaying data in the table. Used within Table.Row.
*
* @component
*
* @example
* John Doe
*/
Cell: typeof Cell;
};
export { Table };
export type { TableProps };