A grouped, collapsible issue list: sticky headers with counts, a ghost add row per group, a selected row, arrow-key focus across groups, and its own windowing so five thousand rows scroll smoothly.
On this page
- An issue or task list grouped by status
- Projects with thousands of rows
- A list beside an open drawer
Examples
5,000 rows
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- groups
{ id, label, icon?, count?, items }[]- Each item is { id, title?, leading?, trailing? }. `count` overrides the shown count when the items are a loaded page of more.
- renderRow
(item, { selected, active }) => ReactNode- Draws a row's content; the row keeps selection, focus and hover.
- selectedId / onSelect
string / (item, group) => void- The highlighted row, for an open drawer, and the click or Enter handler.
- onAdd / addLabel
(groupId) => void / string- Default
- / "Add task" - Adds a ghost row under each open group.
- collapsed / defaultCollapsed / onCollapsedChange
string[]- Collapsed group ids, controlled or not.
- empty
ReactNode- Shown when no group has an item and nothing can be added.
- height / label / noun
number / string / string- Default
fills the parent / "Grouped list" / "task" - The viewport height, the spoken name and the item noun.
| Prop | Type | Default | Description |
|---|---|---|---|
| groups | { id, label, icon?, count?, items }[] | - | Each item is { id, title?, leading?, trailing? }. `count` overrides the shown count when the items are a loaded page of more. |
| renderRow | (item, { selected, active }) => ReactNode | - | Draws a row's content; the row keeps selection, focus and hover. |
| selectedId / onSelect | string / (item, group) => void | - | The highlighted row, for an open drawer, and the click or Enter handler. |
| onAdd / addLabel | (groupId) => void / string | - / "Add task" | Adds a ghost row under each open group. |
| collapsed / defaultCollapsed / onCollapsedChange | string[] | - | Collapsed group ids, controlled or not. |
| empty | ReactNode | - | Shown when no group has an item and nothing can be added. |
| height / label / noun | number / string / string | fills the parent / "Grouped list" / "task" | The viewport height, the spoken name and the item noun. |
What it handles
- 01Groups rows under sticky headers with a chevron, an icon, a name and a count; the header pinned at the top is pushed away by the next one.
- 02Collapses a group on click, Enter or Space and reports it with aria-expanded; controlled or uncontrolled.
- 03Windows the rows itself, so 5,000 across groups scroll smoothly with no dependency; a collapsed group is one row.
- 04Moves focus with the arrow keys across headers, rows and add rows, with Home, End and Page keys; Enter selects.
- 05Highlights the selected row for an open drawer and ends every group with a ghost add row that calls onAdd.
- 06Leaves the row to you: slots for leading, title and trailing, or renderRow for anything else.
States
- Collapse or expand
- The chevron turns and the rows below move at once; the list is windowed, so there is no fold
- 120ms chevron
- Hover a row
- Background
- 120ms
- Select a row
- Highlight and aria-selected; focus stays where it is
- none
- Data refresh
- Rows update in place, nothing animates
- none
- Reduced motion
- The chevron turns at once
- 0ms
| State | What moves | Timing |
|---|---|---|
| Collapse or expand | The chevron turns and the rows below move at once; the list is windowed, so there is no fold | 120ms chevron |
| Hover a row | Background | 120ms |
| Select a row | Highlight and aria-selected; focus stays where it is | none |
| Data refresh | Rows update in place, nothing animates | none |
| Reduced motion | The chevron turns at once | 0ms |
Works with
When to use
When to use
- An issue or task list grouped by status, project or owner, with a drawer for the selected row.
- A list that can hold thousands of rows and must keep scrolling smoothly.
When not to use
- The same tasks as columns on a board: use Kanban Board.
- Many columns of sortable data: use Data Table.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Grouped List to my app and wire it to my own data.
- I need an issue or task list grouped by status, project or owner, with a drawer for the selected row. Set that up with the Knowns UI Grouped List.
- Which Grouped List props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "grouped-list" }) and search_docs({ query: "grouped list" }). Pro props, full examples and source come back once your license key is in the MCP config.