Skip to content

Popover

Design guidelines
HTML
React
Angular
Sed posuere consectetur est at lobortis. Aenean eu leo quam.Default
<certara-popover>
<span slot="popover-content">Sed posuere consectetur est at lobortis. Aenean eu leo quam.</span>
<certara-button>Default</certara-button>
</certara-popover>
import { CertaraButton, CertaraPopover } from '@certara/certara-ui-react';
<CertaraPopover>
<span slot="popover-content">Sed posuere consectetur est at lobortis. Aenean eu leo quam.</span>
<CertaraButton>Default</CertaraButton>
</CertaraPopover>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-popover>
<span slot="popover-content">Sed posuere consectetur est at lobortis. Aenean eu leo quam.</span>
<certara-button>Default</certara-button>
</certara-popover>
HTML
React
Angular
Small popover content.Small
<certara-popover open="true" size="sm">
<span slot="popover-content">Small popover content.</span>
<certara-button>Small</certara-button>
</certara-popover>
import { CertaraButton, CertaraPopover } from '@certara/certara-ui-react';
<CertaraPopover open={true} size="sm">
<span slot="popover-content">Small popover content.</span>
<CertaraButton>Small</CertaraButton>
</CertaraPopover>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-popover open="true" size="sm">
<span slot="popover-content">Small popover content.</span>
<certara-button>Small</certara-button>
</certara-popover>
HTML
React
Angular
Popover on topTop
<certara-popover open="true" size="sm" placement="top">
<span slot="popover-content">Popover on top</span>
<certara-button>Top</certara-button>
</certara-popover>
import { CertaraButton, CertaraPopover } from '@certara/certara-ui-react';
<CertaraPopover open={true} size="sm" placement="top">
<span slot="popover-content">Popover on top</span>
<CertaraButton>Top</CertaraButton>
</CertaraPopover>
// In your module (e.g., app.module.ts)
import { CertaraUiAngularModule } from '@certara/certara-ui-angular';
@NgModule({
imports: [CertaraUiAngularModule]
})
// In your template:
<certara-popover open="true" size="sm" placement="top">
<span slot="popover-content">Popover on top</span>
<certara-button>Top</certara-button>
</certara-popover>

Floating panel anchored to a trigger element for menus, rich content, or contextual actions.

hasPadding

Attributehas-padding
Typeboolean
Defaultundefined
Requiredfalse
DescriptionWhether to add padding to the popover DEPRECATED. Use spaceInside instead. Will be removed in the next major version.

headline

Attributeheadline
Typestring
Defaultundefined
Requiredfalse
DescriptionCreates a header section for the popover

open

Attributeopen
Typeboolean
Defaultundefined
Requiredfalse
DescriptionForces the popover to open or close. Closed when unset.

opened

Attributeopened
Typeboolean
Defaultundefined
Requiredfalse
DescriptionForces the popover to open or close DEPRECATED. Use open instead. Will be removed in the next major version.

placement

Attributeplacement
Type"bottom" | "bottom-start" | "left" | "left-start" | "right" | "right-start" | "top" | "top-start"
Defaultundefined
Requiredfalse
DescriptionThese options will suggest a starting point for the popover position, but <certara-popover> will automatically position itself within the viewport to avoid appearing offscreen

popoverHeader

Attributepopover-header
Typestring
Defaultundefined
Requiredfalse
DescriptionCreates a header section for the popover DEPRECATED. Use headline instead. Will be removed in the next major version.

position

Attributeposition
Type"absolute" | "fixed"
Default'absolute'
Requiredfalse
DescriptionUse ‘fixed’ to break a popover out of a positioned container

size

Attributesize
Type"lg" | "sm"
Defaultundefined
Requiredfalse
DescriptionSets a width on the popover

spaceInside

Attributespace-inside
Type"md" | "none"
Defaultundefined
Requiredfalse
DescriptionWhether to add padding to the popover. none removes it. Defaults to md.
NameDescriptionBubbles
certaraCloseEvent emitted when popover is closedfalse
certaraOpenEvent emitted when popover is openedfalse
NameSignatureDescription
hide() => Promise<void>Public method to hide the popover
show() => Promise<void>Public method to show the popover
NameDescription
Content in the default slot is the opener for the popover.
popover-contentContent for the popover.

A popover is a small overlay that displays supplemental information to the user. It can contain rich content and is triggered when the UI element it relates to is selected.

Select a button to view the popover.
Sed posuere consectetur est at lob ortis. Aenean eu leo quam.Popover rightSed posuere consectetur est at lob ortis. Aenean eu leo quam.Popover topSed posuere consectetur est at lob ortis. Aenean eu leo quam.Popover bottomSed posuere consectetur est at lob ortis. Aenean eu leo quam.Popover left

Use popovers for non-essential information that provides the user with additional guidance or actions.

  • Can contain a header, formatted text, links, etc.
  • Displaying a popover requires a user action (click, tap, or select via key command).
  • Dismissing a popover also requires a user action.
  • Be mindful of placement - a popover should not obscure critical elements on the page.
  • Popovers should be operable using the keyboard alone.
  • Popovers should be announced by screen readers.
  • When a popover is opened, focus should be moved to the popover so that keyboard users can interact with it.
  • When the popover is closed, focus should be returned to the element that triggered it.

For more information, see our accessibility guidelines.

View component in Figma