Components

Popover

A small, floating UI element that appears near a trigger to show contextual information or actions.

Basic

Popovers are small overlays that display additional information about an element when the user clicks on it.

Installation

If you hit any issues, make sure you check out the installation guide here for more information.

Composed Components

When you install this component via the CLI, it automatically loads all composed components, so you don’t need to add them individually.

The Popover comes packed with several components to enhance functionality and provide a seamless experience.

Buttons play a crucial role in functionality, whether for submitting a form or navigating to another page.
A small, interactive UI element that overlays content to display important information or actions.

Manual Installation

Make sure you also install the composed components and the required packages for the component to function properly.

Anatomy

Controlled

You can control the popover programmatically.

Overlay Arrow

The default has an arrow, but you can disable it by passing the showArrow prop.

Placement

You can change the placement of the popover by passing the placement prop.

The list above shows the primary directions, but you can also use specific placements like bottom left or top right. Here are all the available placement options:

Primary DirectionPlacement
bottombottom, bottom left, bottom right, bottom start, bottom end
toptop, top left, top right, top start, top end
leftleft, left top, left bottom
startstart, start top, start bottom
rightright, right top, right bottom
endend, end top, end bottom

Custom Close

The popover can be customized to include a custom close button.

Popover Trigger

All the examples above use <Button/> as the trigger, but what if you wanna switch it up, like using <Avatar/> instead? No sweat, just roll with PopoverTrigger like this:

Get premium Blocks

Create stunning, professional-grade layouts that not only save time but also elevate the quality of your projects.