12 lines
310 B
TypeScript
12 lines
310 B
TypeScript
import type { Key } from "react-aria-components"
|
|
|
|
export interface SelectProps
|
|
extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "onSelect"> {
|
|
items: { label: string; value: Key }[]
|
|
label: string
|
|
name: string
|
|
onSelect: (key: Key) => void
|
|
placeholder?: string
|
|
defaultSelectedKey?: Key
|
|
}
|