View as Markdown

API reference: @salmonui/data-grid

DataGridRowcomponent

import { DataGridRow } from '@salmonui/data-grid';
function DataGridRow({ className, children, ...rest }: DataGridRowProps): import("react").JSX.Element;

role="row" part for row templates: spread rowProps and place cells inside.

Props: DataGridRowProps

DataGridRow props (13)
NameSignatureDescription
aria-rowindex'aria-rowindex': number;
data-row-id'data-row-id': RowId;
data-row-indexoptional'data-row-index'?: number;
classNameoptionalclassName?: string;
childrenoptionalchildren?: ReactNode;
styleoptionalinheritedstyle?: CSSProperties;
aria-selectedoptionalinheritedaria-selected?: boolean;
aria-leveloptionalinheritedaria-level?: number;

Tree mode (role="treegrid" only): depth + 1, sibling ordinal and count, parents' expansion, loading children.

aria-posinsetoptionalinheritedaria-posinset?: number;
aria-setsizeoptionalinheritedaria-setsize?: number;
aria-expandedoptionalinheritedaria-expanded?: boolean;
aria-busyoptionalinheritedaria-busy?: boolean;
refoptionalinheritedref?: Ref<HTMLDivElement>;