Popover
An accessible popup anchored to a button.
Features
- Focus is managed and can be trapped within the popover
- Supports modal and non-modal modes
- Supports custom positioning with placement options
- Pressing
Escapecloses the popover - Automatically adjusts position to stay in viewport
Installation
typo3 ui:add popover
Please copy the files manually from GitHub into your project.
Read more about installing Components and Primitives.
Examples
With Close Button
Show a close button inside the popover.
Custom Positioning
Control where the popover appears relative to the trigger.
Modal Mode
Make the popover modal to trap focus and block interaction with the rest of the page.
Anatomy
<primitives:popover.root>
<primitives:popover.trigger />
<primitives:popover.positioner>
<primitives:popover.content>
<primitives:popover.arrow />
<primitives:popover.closeTrigger />
<primitives:popover.title />
<primitives:popover.description />
</primitives:popover.content>
</primitives:popover.positioner>
</primitives:popover.root>