liber-salti
Version:
Saltí - Liber Design System
48 lines (47 loc) • 1.16 kB
TypeScript
import { RightActionsProps } from '../Table/Table.types';
export interface TableActionCellProps {
/**
* If `true`, it loses selection and hover state
*/
isHeader?: boolean;
/**
* Height of the cell
*/
height?: number;
/**
* If `true`, the cell is absolutely positioned on the table
*/
detach?: boolean;
/**
* If `true`, the padding is reduced
*/
dense?: boolean;
/**
* If `true`, the checkbox will be selected
*/
selected?: boolean;
/**
* If `true`, the checkbox will be indeterminated, should be used only on headers.
*/
indeterminate?: boolean;
/**
* The checkbox callback
*/
onSelect?: () => void;
/**
* If `true`, the checkbox will be disabled
*/
disableSelection?: boolean;
/**
* Tooltip to be shown on the checkbox
*/
checkboxTooltip?: string;
/**
* The variant of the component
*/
variant?: 'checkbox' | 'actions';
/**
* The actions shown when using the `actions` variant
*/
rightActions?: RightActionsProps;
}