Skip to content

@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

NameTypeDescriptionDefined in
autoexpand?booleanWhether to automatically expand new tree rows (default: false)packages/react/src/jsx.ts:692
items?ListItem<T, S>[]Data items to display in the listpackages/react/src/jsx.ts:688
renderHeader?((item) => ReactNode) | nullFunction to render section headers when items contain section entriespackages/react/src/jsx.ts:694
renderItem()(item, row?) => ReactNodeFunction to render each list item. The row parameter provides tree state for hierarchical lists.packages/react/src/jsx.ts:690

Type Parameters

Type ParameterDefault type
Tunknown
Sunknown