@gtkx/react / ListViewProps
Type Alias: ListViewProps<T, S>
ListViewProps<
T,S> =BaseListViewProps&object
Defined in: packages/react/src/jsx.ts:686
Props for the GtkListView compound component.
Extends the shared list-view base props with item data, a render callback, optional tree expansion, and section header rendering.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
autoexpand? | boolean | Whether to automatically expand new tree rows (default: false) | packages/react/src/jsx.ts:692 |
items? | ListItem<T, S>[] | Data items to display in the list | packages/react/src/jsx.ts:688 |
renderHeader? | ((item) => ReactNode) | null | Function to render section headers when items contain section entries | packages/react/src/jsx.ts:694 |
renderItem() | (item, row?) => ReactNode | Function to render each list item. The row parameter provides tree state for hierarchical lists. | packages/react/src/jsx.ts:690 |
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
S | unknown |