Files
web/components/TempDesignSystem/Select/select.ts
Niclas Edenvin 0f97757e31 Merged in feat/sw-620-sort-hotels (pull request #868)
Feat/sw-620 sort hotels

* SW-620 Add radio button to select box

* feat(SW-620): Implement sorting on select hotel

* Fix casing

* Shallow copy hoteldata

* Use translations

* Remove unnecessary style

* Import order

* Type


Approved-by: Pontus Dreij
2024-11-11 08:55:49 +00:00

18 lines
543 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
maxHeight?: number
showRadioButton?: boolean
}
export type SelectPortalContainer = HTMLDivElement | undefined
export type SelectPortalContainerArgs = HTMLDivElement | null