UNPKG

welcome-ui

Version:

Customizable design system with react, typescript, tailwindcss and ariakit.

17 lines (16 loc) 592 B
import { ComponentPropsWithoutRef, ComponentPropsWithRef, HTMLAttributes } from 'react'; export type TableProps = ComponentPropsWithRef<'div'> & HTMLAttributes<HTMLDivElement> & TableOptions; export type TableTrProps = ComponentPropsWithoutRef<'tr'> & HTMLAttributes<HTMLTableRowElement> & TableTrOptions; interface TableOptions { /** * Add vertical divider between columns */ withColumnDivider?: boolean; } interface TableTrOptions { /** * Change the cursor to pointer to indicate the row is clickable */ onClick?: (props?: unknown) => void; } export {};