fix(app): model selection persist by session (#17348)

This commit is contained in:
Adam 2026-03-13 11:05:08 -05:00 committed by GitHub
commit 4ad8116ce3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 969 additions and 440 deletions

View file

@ -19,6 +19,7 @@ export type SelectProps<T> = Omit<ComponentProps<typeof Kobalte<T>>, "value" | "
children?: (item: T | undefined) => JSX.Element
triggerStyle?: JSX.CSSProperties
triggerVariant?: "settings"
triggerProps?: Record<string, string | number | boolean | undefined>
}
export function Select<T>(props: SelectProps<T> & Omit<ButtonProps, "children">) {
@ -38,6 +39,7 @@ export function Select<T>(props: SelectProps<T> & Omit<ButtonProps, "children">)
"children",
"triggerStyle",
"triggerVariant",
"triggerProps",
])
const state = {
@ -131,6 +133,7 @@ export function Select<T>(props: SelectProps<T> & Omit<ButtonProps, "children">)
}}
>
<Kobalte.Trigger
{...local.triggerProps}
disabled={props.disabled}
data-slot="select-select-trigger"
as={Button}