Popover - Keep React

Popover component is a user interface element that displays additional information or options when a user interacts with a specific trigger, such as hovering over text or clicking a button.

Table of Contents#

Default Popover#

The Default Popover demonstrates a basic popover component.

One Paragraph Popover#

The One Paragraph Popover showcases a popover with a single paragraph of text.

Single Line Popover#

The Single Line Popover displays a popover with content confined to a single line.

Trigger Variant Popover#

The Trigger Variant Popover exhibits different trigger interactions for the popover. There are two variants of trigger interactions such as trigger='click' and trigger='hover'.

Popover Position#

The Popover Position component demonstrates various popover positions relative to the trigger element. There are lots of position for popover. Please see the API Reference sections to apply the position.

API Reference#

Explore the available props for the Popover component

PropertyDescriptionTypeDefault
triggerDefines the interaction trigger for the popover.
hover
click
click
childrenContent that triggers the popover when interacted with.
ReactNode
Button
additionalContentAdditional content to be displayed within the popover.
ReactNode
None
titleTitle or heading for the popover content.
string
Popover Title
descriptionAdditional text description for the popover content.
string
Description
iconIcon to be displayed within the popover.
ReactNode
Xcricle
customClassCustom CSS class for styling the popover.
string
None
positionDefines the position of the popover relative to the trigger element.
top
top-end
top-start
bottom
bottom-end
bottom-start
left
left-end
left-start
right
right-end
right-start
bottom-start

Reference#

To learn more about the Floating-UI, please see the documentation of Floating-UI