@neuctra/ui
Version:
A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.
43 lines (42 loc) • 1.76 kB
TypeScript
import { ReactNode, CSSProperties } from 'react';
export interface TableProps {
children: ReactNode;
/** Wrapper */
className?: string;
style?: CSSProperties;
/** Table */
tableClassName?: string;
tableStyle?: CSSProperties;
/** Behavior */
responsive?: boolean;
striped?: boolean;
hoverable?: boolean;
bordered?: boolean;
dense?: boolean;
}
export declare function Table({ children, className, style, tableClassName, tableStyle, responsive, striped, hoverable, bordered, dense, }: TableProps): import("react/jsx-runtime").JSX.Element;
export interface TableSectionProps {
children: ReactNode;
className?: string;
style?: CSSProperties;
striped?: boolean;
hoverable?: boolean;
bordered?: boolean;
dense?: boolean;
}
export declare function THead({ children, className, style, bordered, }: TableSectionProps): import("react/jsx-runtime").JSX.Element;
export declare function TBody({ children, className, style, striped, hoverable, bordered, }: TableSectionProps): import("react/jsx-runtime").JSX.Element;
export interface TRowProps extends TableSectionProps {
onClick?: () => void;
index?: number;
}
export declare function TRow({ children, className, style, onClick, striped, hoverable, bordered, index, }: TRowProps): import("react/jsx-runtime").JSX.Element;
export interface TableCellProps {
children: ReactNode;
className?: string;
style?: CSSProperties;
bordered?: boolean;
dense?: boolean;
}
export declare function TH({ children, className, style, bordered, dense, }: TableCellProps): import("react/jsx-runtime").JSX.Element;
export declare function TD({ children, className, style, dense }: TableCellProps): import("react/jsx-runtime").JSX.Element;