shadcn.io is an independent project built on shadcn/ui
Open shows the sentence This is a simple popover with text content. The title Details is hidden and names the panel for screen readers.
Use it for a note that should stay up until it is dismissed. A tip that should vanish when the pointer leaves belongs in a Tooltip. In Vue, Ark UI does not supply the sentence.
Installation
Anatomy

Usage
<Popover>
<PopoverTrigger :asChild="true">
<Button variant="outline">Open</Button>
</PopoverTrigger>
<PopoverContent>
<PopoverTitle class="sr-only">Details</PopoverTitle>
<p>This is a simple popover with text content.</p>
</PopoverContent>
</Popover>FAQ
What is in this panel?
PopoverTitle reads Details and has className="sr-only", so the name is for assistive tech. The visible line is a p: This is a simple popover with text content. The trigger label is Open.
How does the Open button become the trigger?
The trigger is a Button with variant="outline" and the label Open. Activating it opens the panel.
Set asChild on PopoverTrigger and pass that one button. PopoverContent is the panel.
When should this be a tooltip?
This panel is one sentence that stays open until it is dismissed. A Tooltip fits a few words on hover or focus. The sr-only title gives this panel a name.
How wide is the panel?
This demo sets no width on PopoverContent, so it keeps the part's w-72. The title is visually hidden, and the paragraph is the only text someone sees.
API Reference
Popover
Sets asChild. The rest is on the Popover page.
Button
Sets variant="outline". The rest is on the Button page.



