Skip to main content
Version: Next

Dropdown Box

Props

Specifies which direction the drop-down menu should open.

  • DEFAULT
  • TOP
  • BOTTOM
  • AUTO
dropDownDirection="TOP"
TypeDefault
stringAUTO

bottomOffset

Specifies the maximum bottom offset. To use this prop you need dropDownDirection="AUTO".

bottomOffset={100}
TypeDefault
number0

Callbacks

onDirectionChanged

Callback that is called when the direction changes.

onDirectionChanged={(direction) => {
console.log(direction); // top or bottom
}}

Styling

dropDownContainerStyle={{
backgroundColor: "#dfdfdf"
}}