A popover is used to display contextual information to the user.
A popover can accept the following nubbin position classes: .slds-nubbin_left, .slds-nubbin_left-top, .slds-nubbin_left-bottom, .slds-nubbin_top-left, .slds-nubbin_top-right, .slds-nubbin_right-top, .slds-nubbin_right-bottom, .slds-nubbin_bottom-left, .slds-nubbin_bottom-right.
Accessibility
Notable features
Popovers must come with a triggering button
They must have at least one focusable element inside
They should be implemented as a keyboard focus trap
When triggered, user focus should be placed on the first focusable element that isn
Featured Example
Featured Popover
This is a featured popover with a header and close button. It demonstrates the basic structure and functionality.
About Popovers
A popover is used to display contextual information to the user.
A popover can accept the following nubbin position classes: .slds-nubbin_left, .slds-nubbin_left-top, .slds-nubbin_left-bottom, .slds-nubbin_top-left, .slds-nubbin_top-right, .slds-nubbin_right-top, .slds-nubbin_right-bottom, .slds-nubbin_bottom-left, .slds-nubbin_bottom-right.
Accessibility
Notable features
Popovers must come with a triggering button
They must have at least one focusable element inside
They should be implemented as a keyboard focus trap
When triggered, user focus should be placed on the first focusable element that isn't the close button
Pressing the Escape key as well as clicking the close button should close the Popover
User focus should be placed back on the triggering button when the popover is closed
Notable attributes
The Popover element should have role="dialog" applied
The dialog should be labelled using aria-labelledby or aria-label
The dialog should be described using aria-describedby
The triggering element must have aria-haspopup="true" when opened
Base
Basic Popover
This is a basic popover without a header or footer.
With Header
Popover Header
This popover includes a header with a title and close button.
With Footer
With Badge
New Feature Beta
This popover includes a badge in the header to indicate status or category.
Widths
Small
Small width popover (20rem/320px).
Medium
Medium width popover (25rem/400px).
Large
t the close button
Pressing the Escape key as well as clicking the close button should close the Popover
User focus should be placed back on the triggering button when the popover is closed
Notable attributes
The Popover element should have role="dialog" applied
The dialog should be labelled using aria-labelledby or aria-label
The dialog should be described using aria-describedby
The triggering element must have aria-haspopup="true" when opened
Base
Basic Popover
This is a basic popover example.
With Header
Popover Header
About Popovers
A popover is used to display contextual information to the user.
A popover can accept the following nubbin position classes: .slds-nubbin_left, .slds-nubbin_left-top, .slds-nubbin_left-bottom, .slds-nubbin_top-left, .slds-nubbin_top-right, .slds-nubbin_right-top, .slds-nubbin_right-bottom, .slds-nubbin_bottom-left, .slds-nubbin_bottom-right.
Accessibility
Notable features
Popovers must come with a triggering button
They must have at least one focusable element inside
They should be implemented as a keyboard focus trap
When triggered, user focus should be placed on the first focusable element that isn't the close button
Pressing the Escape key as well as clicking the close button should close the Popover
User focus should be placed back on the triggering button when the popover is closed
Notable attributes
The Popover element should have role="dialog" applied
The dialog should be labelled using aria-labelledby or aria-label
The dialog should be described using aria-describedby
The triggering element must have aria-haspopup="true" when opened
Base
Basic Popover
Basic Popover
This is a basic popover without a header or footer.
With Header
Popover with Header
Popover Header
Close
This popover includes a header with a title and close button.
With Footer
Popover with Footer
With Badge
Popover with Badge
New Feature Beta
Close
This popover includes a badge in the header to indicate status or category.