Popover

Popover component that shows a dialog over the rest of the page on demand.

Note that the open property is one-way. Developers will need to listen to the funDismiss event and set open to false themselves. The FunDismiss event is emitted when:

If your popover will contain other floating content such as dropdowns or tooltips you should add class relative to your body content, so that positioning works properly in Firefox and safari.

Examples

Specifications

Properties

Property Attribute Required Description
backdrop backdrop Use a backdrop to capture clicks outside the popover rather than capturing clicks in the document.
debug debug Set to true for extra console debug logging.
offsetX offset-x adds a horizontal offset between the trigger element and the popover.
offsetY offset-y adds a vertical offset between the trigger element and the popover.
open open true Is the popover open or not?
position position Position the popover in relation to the trigger element. Defaults to the 'best' location.
positionStrategy position-strategy Use to override the positioning strategy, which can be helpful in some conditions.

Events

Name Description
funDismiss Occurs when the popover is dismissed.

Slots

Name Description
content The content to be shown inside the popover.
trigger The element the popover should be positioned relative to. Usually clicking this element should open the popover.

Search Gunnel

Powered byAlgolia