@atlaskit/table-tree
Version:
A table tree is an expandable table for showing nested hierarchies of information.
26 lines (25 loc) • 896 B
TypeScript
import React, { type ReactNode } from 'react';
export interface CellProps {
/**
* Sets whether the cell contents should wrap or display on a single line and be truncated. For accessibility reasons, wrapping the content is strongly recommended.
*/
singleLine?: boolean;
/**
* Sets the indent level for the cell. Each indent level adds `25px` to the left padding.
*/
indentLevel?: number;
/**
* The width of the header item. Takes a string, or a number representing the width in pixels.
*/
width?: number | string;
/**
* Class name to apply to the cell.
*/
className?: string;
/**
* Children content, used when composing a table tree from internal components
*/
children?: ReactNode;
}
declare const Cell: (props: CellProps & import('..').CellWithColumnWidthProps) => React.JSX.Element;
export default Cell;