Overview
The Popover Component is a layer that appears above all other content on a page containing text and interactive elements. The popover contains a caret tip to help show the relationship between the popover and where it was triggered from.
When to Use
Formatting
Anatomy
- Title
- Body Copy
- Optional CTA (button, button group, link)
- Caret tip
- Dismiss icon
Interactive Trigger Button
A popover is controlled by a trigger button. An interactive element must trigger the popover to open on mouse click or keyboard press (SPACEBAR/ENTER). This interactive element is a button by function but can visually change its shape and size depending on the use case.
The popover is triggered by an interactive button. There should be 4px of padding between the trigger and the caret and have 4px of spacing in all orientations. The caret tip of the popover must be aligned to the trigger button and is arranged dynamically based on where the trigger button is in relation to the page.
Placement
Content
Element | Content Type | Recommended Character Limit |
---|---|---|
Title (optional) | Text |
|
Body Copy | Text |
|
Call to Action (optional) | Button, Button Group, Link | _ |
Close Icon | Icon Button | _ |