Files
web/components/TempDesignSystem/Form/Select/select.ts
2024-05-31 14:56:04 +02:00

14 lines
369 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
}
export type SelectPortalContainer = HTMLDivElement | null