Dropdown Box
Props
dropDownDirection
Specifies which direction the drop-down menu should open.
DEFAULT
TOP
BOTTOM
AUTO
dropDownDirection="TOP"
Type | Default |
---|---|
string | AUTO |
bottomOffset
Specifies the maximum bottom offset. To use this prop you need dropDownDirection="AUTO"
.
bottomOffset={100}
Type | Default |
---|---|
number | 0 |
Callbacks
onDirectionChanged
Callback that is called when the direction changes.
onDirectionChanged={(direction) => {
console.log(direction); // top or bottom
}}
Styling
dropDownContainerStyle
dropDownContainerStyle={{
backgroundColor: "#dfdfdf"
}}