Components

Popover

A compact overlay for quick contextual details and lightweight actions without forcing a full dialog.

Tap to show a QR code for the Expo showcase deep link. The web preview below runs in the browser.

Loading...

Installation

Install the registry item directly, then add any package dependencies if you are setting the component up manually.

1

Install the component

Run the registry command below to add popover to your project.

watermelon add popover
2

Import the component

Import Popover from your local UI registry output.

Import

import { Popover } from "@/components/ui/popover";

Import

Import

import {
Popover,
PopoverContent,
PopoverDescription,
PopoverHeader,
PopoverTitle,
PopoverTrigger,
} from "@/components/ui/popover";

Usage

Use a popover when the user needs a little more context, but a full modal would feel heavy.

Loading...

API Reference

proptypedefaultdescription
defaultOpenbooleanfalseSets the initial open state for uncontrolled popovers.
openboolean-Controls whether the popover is visible.
onOpenChange(open: boolean) => void-Called when the popover toggles.
asChildbooleanfalseLets the trigger forward interaction into an existing child element.