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.

Card Popover#

The Card Popover showcases a popover with a card view, providing a visually appealing way to present additional information or options.

Icon Popover#

The Icon Popover displays a popover with an icon, offering a compact and visually engaging way to provide additional context or actions.

API Reference#

Explore the available props for the Popover component:

PropertyDescriptionTypeDefault
openThe controlled open state of the popover.booleanfalse
onOpenChangeEvent handler called when the open state of the popover changes.setStatenull

Content API Reference#

Explore the available props for the Popover content component:

PropertyDescriptionTypeDefault
alignThe preferred alignment against the anchor.
start
center
end
center
sideThe preferred side of the anchor to render against when open.
top
right
bottom
left
bottom
alignOffsetThe preferred side of the anchor to render against when open.number10
arrowPaddingThe padding between the arrow and the edges of the content. number0

Reference#

Our modal component is built using the @radix-ui/react-popover package. For more information , follow the documentation @radix-ui/react-popover.