UNPKG

liber-salti

Version:

Saltí - Liber Design System

45 lines (44 loc) 1.15 kB
import React from 'react'; import { RightActionsProps } from 'Table/Table.types'; export interface TableRowProps { /** * The TableCell children */ children?: React.ReactNode[]; /** * If `true`, the row will lose hovering and selected states */ isHeader?: boolean; /** * If `true`, the children padding will be reduced */ dense?: boolean; /** * If `true`, the left checkbox will be indeterminate */ indeterminate?: boolean; /** * If `true`, the left checkbox will be selected */ selected?: boolean; /** * The actions that show on the end of the row */ rightActions?: RightActionsProps; /** * The left checkbox callback */ onSelect?: () => void; /** * Select all pages callback, available only if isHeader is `true` */ onSelectAll?: (action: 'select' | 'deselect') => void; /** * If `true`, the checkbox will be disabled */ disableSelection?: boolean; /** * Tooltip to be shown on the checkbox */ checkboxTooltip?: string; }