16 lines
494 B
TypeScript
16 lines
494 B
TypeScript
import type { Key, SelectProps as AriaSelectProps } from "react-aria-components"
|
|
|
|
export interface SelectProps
|
|
extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "onSelect"> {
|
|
defaultSelectedKey?: Key
|
|
items: { label: string; value: Key }[]
|
|
label: string
|
|
name: string
|
|
onSelect: (key: Key) => void
|
|
placeholder?: string
|
|
value?: string | number
|
|
}
|
|
|
|
export type SelectPortalContainer = HTMLDivElement | undefined
|
|
export type SelectPortalContainerArgs = HTMLDivElement | null
|