Skip to content

Dropdown properties

Summary


Props table


Parameter
Type
Default
number
/
(JSX.Element | string)[]
[]
boolean
false
(newValue: number) => void
() => {}


Props list



value

Type
Default
number
/


actual selected element (as index). If not set, default value will be used.



elements

Type
Default
(JSX.Element | string)[]
[]


Dropdown content elements



hideArrow

Type
Default
boolean
false


If true, hide the arrow icon near selected element



onChange

Type
Default
(newValue: number) => void
() => {}


Callback triggered when selecting new element from dropdown