DropDownButton
This component wraps another component and shows a tooltip for the component it is wrapping, whenever the user moves the mouse over it.
Installation
Examples
Properties
content
() => JSX.Element
The content to show inside the Dropdown
position
Where the dropdown should be placed relative to the element it is being displayed for default is right
showOnHover
boolean
If this is true dropdown will show on mouse over & hide n mouse out If this is false dropdown ill show on click
keepShowingOnHover
boolean
this will open the dropdown on hover and keep open even if user takes the mouse away Click on outside to close the dropdown
className
string
onOpen
() => void
callback function when the popup is open
onClose
() => void
callback function when the popup is closed
forceClose
boolean
an option to force close a popup
disableScroll
boolean
disable scroll on open dropdown true by default
autoPosition
boolean
if this is enabled drop down will be automatically positionsed within the view. better to use this option- it has been improved if enabled it will ignore the position param
content
The content to show inside the Dropdown
() => JSX.Element
position
Where the dropdown should be placed relative to the element it is being displayed for default is right
showOnHover
If this is true dropdown will show on mouse over & hide n mouse out If this is false dropdown ill show on click
boolean
keepShowingOnHover
this will open the dropdown on hover and keep open even if user takes the mouse away Click on outside to close the dropdown
boolean
className
string
onOpen
callback function when the popup is open
() => void
onClose
callback function when the popup is closed
() => void
forceClose
an option to force close a popup
boolean
disableScroll
disable scroll on open dropdown true by default
boolean
autoPosition
if this is enabled drop down will be automatically positionsed within the view. better to use this option- it has been improved if enabled it will ignore the position param
boolean
Last updated