Feat/SW-338 design filters and sorting on select hotel * feat(SW-338): design hotel sort dropdown * Translations * feat(SW-338): style filters * Bold * Import type * Translations * Rename and add translation * Rename translation Approved-by: Bianca Widstam
19 lines
564 B
TypeScript
19 lines
564 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
|
|
discreet?: boolean
|
|
}
|
|
|
|
export type SelectPortalContainer = HTMLDivElement | undefined
|
|
export type SelectPortalContainerArgs = HTMLDivElement | null
|