usePopover API
API reference docs for theusePopover
component. For examples and details on the usage of this component, visit the component demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
|
| When true, the popover element is open. Required when using the | _ |
|
| Set this value to true when the popover remains mounted but is visually hidden with CSS when the popover is closed. |
|
|
| When | _ |
|
| The maximum height of the popover, by default Popover comes with overflow hidden, make sure you have scrollable styles when content overflows from maxHeight. | _ |
|
| The maximum width of the popover, by default Popover tries to take remaining space of relative parent width, when you restrict content width ensure you are also wrapping content with ellipses. | _ |
|
| Distance between the reference element and popover element in | _ |
|
| Placement of the popover relative to the reference. |
|
|
| The strategy used to position the floating element. |
|