mt-flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
28 lines (27 loc) • 1.08 kB
TypeScript
import type { ComponentProps, FC, PropsWithChildren } from 'react';
import type { DeepPartial } from '../../';
import type { FlowbiteTableBodyTheme } from './TableBody';
import type { TableContextType } from './TableContext';
import type { FlowbiteTableHeadTheme } from './TableHead';
import type { FlowbiteTableRowTheme } from './TableRow';
export interface FlowbiteTableTheme {
root: FlowbiteTableRootTheme;
head: FlowbiteTableHeadTheme;
row: FlowbiteTableRowTheme;
body: FlowbiteTableBodyTheme;
}
export interface FlowbiteTableRootTheme {
base: string;
shadow: string;
wrapper: string;
}
export interface TableProps extends PropsWithChildren, ComponentProps<'table'>, TableContextType {
theme?: DeepPartial<FlowbiteTableTheme>;
}
export declare const Table: FC<TableProps> & {
Head: FC<import("./TableHead").TableHeadProps>;
Body: FC<import("./TableBody").TableBodyProps>;
Row: FC<import("./TableRow").TableRowProps>;
Cell: FC<import("./TableCell").TableCellProps>;
HeadCell: FC<import("./TableHeadCell").TableHeadCellProps>;
};