diff options
| author | Adam <[email protected]> | 2025-12-10 17:17:34 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-10 17:17:37 -0600 |
| commit | 85cfa226c34e41660ddfdcb04543af2e494ae168 (patch) | |
| tree | f98a6631bf169470c37eeacc79129b826da59dd2 /packages/ui/src/components/list.tsx | |
| parent | cbb591eb7dfe8e27298945f10e5d6cfff4405630 (diff) | |
| download | opencode-85cfa226c34e41660ddfdcb04543af2e494ae168.tar.gz opencode-85cfa226c34e41660ddfdcb04543af2e494ae168.zip | |
wip(desktop): progress
Diffstat (limited to 'packages/ui/src/components/list.tsx')
| -rw-r--r-- | packages/ui/src/components/list.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx index 3fbeb35f6..a7f2db9ef 100644 --- a/packages/ui/src/components/list.tsx +++ b/packages/ui/src/components/list.tsx @@ -4,6 +4,7 @@ import { FilteredListProps, useFilteredList } from "@opencode-ai/ui/hooks" import { Icon, IconProps } from "./icon" export interface ListProps<T> extends FilteredListProps<T> { + class?: string children: (item: T) => JSX.Element emptyMessage?: string onKeyEvent?: (event: KeyboardEvent, item: T | undefined) => void @@ -90,7 +91,7 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void }) }) return ( - <div ref={setScrollRef} data-component="list"> + <div ref={setScrollRef} data-component="list" classList={{ [props.class ?? ""]: !!props.class }}> <Show when={flat().length > 0} fallback={ |
