For more details and examples visit the official docs. The R package can not handle each and every case, so for advanced use cases you need to work using the original docs to achieve the desired result.
string
Defines the element id referencing the element containing the description for the popup.
string
Accessible label text for the popup.
string
Defines the element id referencing the element containing label text for popup.
string
Optional class name for the root popup div.
(ev?: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => any
A callback function for when the popup is dismissed from the close button or light dismiss. If provided, will handle escape keypresses and call this. The event will be stopped/canceled.
(options: { originalElement?: HTMLElement | Window; containsFocus: boolean; }) => void
Called when the component is unmounting, and focus needs to be restored. Argument passed down contains two variables, the element that the underlying popup believes focus should go to * and whether or not the popup currently contains focus. If this is provided, focus will not be restored automatically, you'll need to call originalElement.focus()
string
Aria role for popup
boolean
If true, when this component is unmounted, focus will be restored to the element that had focus when the component first mounted.