diff options
| author | David Hill <[email protected]> | 2026-01-20 17:20:20 +0000 |
|---|---|---|
| committer | David Hill <[email protected]> | 2026-01-20 20:34:44 +0000 |
| commit | c57491ba48863195ed0df0124687f6d5d3463882 (patch) | |
| tree | 7dbffe904c75c92c025d888dcd86a1a64e2d1be2 /packages/ui/src | |
| parent | 9ffb7141e5de14d38ce4d9e2e427caac7437416b (diff) | |
| download | opencode-c57491ba48863195ed0df0124687f6d5d3463882.tar.gz opencode-c57491ba48863195ed0df0124687f6d5d3463882.zip | |
add triggerStyle prop to Select and use it for font selector
Diffstat (limited to 'packages/ui/src')
| -rw-r--r-- | packages/ui/src/components/select.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/ui/src/components/select.tsx b/packages/ui/src/components/select.tsx index 1a1de0bef..9d6c45609 100644 --- a/packages/ui/src/components/select.tsx +++ b/packages/ui/src/components/select.tsx @@ -16,6 +16,7 @@ export type SelectProps<T> = Omit<ComponentProps<typeof Kobalte<T>>, "value" | " class?: ComponentProps<"div">["class"] classList?: ComponentProps<"div">["classList"] children?: (item: T | undefined) => JSX.Element + triggerStyle?: JSX.CSSProperties } export function Select<T>(props: SelectProps<T> & ButtonProps) { @@ -32,6 +33,7 @@ export function Select<T>(props: SelectProps<T> & ButtonProps) { "onHighlight", "onOpenChange", "children", + "triggerStyle", ]) const state = { @@ -127,6 +129,7 @@ export function Select<T>(props: SelectProps<T> & ButtonProps) { as={Button} size={props.size} variant={props.variant} + style={local.triggerStyle} classList={{ ...(local.classList ?? {}), [local.class ?? ""]: !!local.class, |
