@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
19 lines (18 loc) • 781 B
TypeScript
import { TableDividerType } from '../types/table';
import { TableDividerStylesType } from '../types/tableTheme';
export interface ITableDivider {
divider: null | TableDividerType | unknown;
styles?: TableDividerStylesType;
}
/**
* @description
* TableDivider component is used to display a divider between table rows.
* It can be a string or a Divider component.
* If it is a string, it will be rendered as a LineSeparator component.
* If it is a Divider component, it will be rendered as a Divider component.
* If it is null, it will not be rendered.
* @example
* <TableDivider dividerValue="test" />
* <TableDivider dividerValue={<Divider variant="dashed" />} />
*/
export declare const TableDivider: ({ divider, styles }: ITableDivider) => JSX.Element | null;