# DataGridRowElementProps (@salmonui/data-grid)

> The DataGridRowElementProps interface of @salmonui/data-grid: Props a custom row must spread onto its role="row" element.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridRowElementProps

```ts
import type { DataGridRowElementProps } from '@salmonui/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid.md).

## Reference

Kind: interface

```ts
interface DataGridRowElementProps {
    role: 'row';
    'aria-rowindex': number;
    className: string;
    style?: CSSProperties;
    'data-row-id': RowId;
    'data-row-index': number;
    'aria-selected'?: boolean;
    'data-expanded'?: 'true' | 'false';
    'aria-level'?: number;
    'aria-posinset'?: number;
    'aria-setsize'?: number;
    'aria-expanded'?: boolean;
    'aria-busy'?: boolean;
    'data-alt'?: '';
    ref?: Ref<HTMLDivElement>;
    [key: `data-${string}`]: string | number | boolean | undefined;
}
```

Props a custom row must spread onto its `role="row"` element.

Members (15):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `role` | `role: 'row';` |  |  |
| `aria-rowindex` | `'aria-rowindex': number;` |  |  |
| `className` | `className: string;` |  |  |
| `style` | `style?: CSSProperties;` | optional |  |
| `data-row-id` | `'data-row-id': RowId;` |  |  |
| `data-row-index` | `'data-row-index': number;` |  |  |
| `aria-selected` | `'aria-selected'?: boolean;` | optional |  |
| `data-expanded` | `'data-expanded'?: 'true' \| 'false';` | optional | Rows with a detail row or child grid: `'true'` / `'false'`. Not `aria-expanded`, which ARIA allows on `treegrid` rows only; the detail toggle button carries `aria-expanded`. |
| `aria-level` | `'aria-level'?: number;` | optional | Tree mode (`role="treegrid"` only): depth + 1, sibling ordinal and count, parents' expansion, loading children. |
| `aria-posinset` | `'aria-posinset'?: number;` | optional |  |
| `aria-setsize` | `'aria-setsize'?: number;` | optional |  |
| `aria-expanded` | `'aria-expanded'?: boolean;` | optional |  |
| `aria-busy` | `'aria-busy'?: boolean;` | optional |  |
| `data-alt` | `'data-alt'?: '';` | optional |  |
| `ref` | `ref?: Ref<HTMLDivElement>;` | optional |  |
