Skip to content

Popovers

certara-tooltip uses the Floating UI positioning library (successor to Popper) as a dependency

Show design guidelines

HTML React Angular
Sed posuere consectetur est at lob ortis. Aenean eu leo quam.Default
<certara-popover>
<span slot="popover-content">Sed posuere consectetur est at lob ortis. 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 lob ortis. 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 lob ortis. Aenean eu leo quam.</span>
<certara-button>Default</certara-button>
</certara-popover>
Sed posuere consectetur est at lob ortis. Aenean eu leo quam.Small
<certara-popover opened="true" size="sm">
<span slot="popover-content">Sed posuere consectetur est at lob ortis. Aenean eu leo quam.</span>
<certara-button>Small</certara-button>
</certara-popover>
import { CertaraButton, CertaraPopover } from '@certara/certara-ui-react';
<CertaraPopover opened={true} size="sm">
<span slot="popover-content">Sed posuere consectetur est at lob ortis. Aenean eu leo quam.</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 opened="true" size="sm">
<span slot="popover-content">Sed posuere consectetur est at lob ortis. Aenean eu leo quam.</span>
<certara-button>Small</certara-button>
</certara-popover>
Sed posuere consectetur est at lob ortis. Aenean eu leo quam.Popover top
<certara-popover opened="true" placement="top">
<span slot="popover-content">Sed posuere consectetur est at lob ortis. Aenean eu leo quam.</span>
<certara-button>Popover top</certara-button>
</certara-popover>
import { CertaraButton, CertaraPopover } from '@certara/certara-ui-react';
<CertaraPopover opened={true} placement="top">
<span slot="popover-content">Sed posuere consectetur est at lob ortis. Aenean eu leo quam.</span>
<CertaraButton>Popover 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 opened="true" placement="top">
<span slot="popover-content">Sed posuere consectetur est at lob ortis. Aenean eu leo quam.</span>
<certara-button>Popover top</certara-button>
</certara-popover>

opened

Attributeopened
Typeboolean
Defaultfalse
Requiredfalse
DescriptionForces the popover to open or close

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

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
NameDescriptionBubbles
certaraCloseEvent emitted when popover is closedtrue
certaraOpenEvent emitted when popover is openedtrue
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.