shadcn.io is an independent project built on shadcn/ui
View Items opens three rows: Item 1, Item 2, and Item 3. The title Items is hidden and read by screen readers.
Use it to show a handful of related entries next to the control that counts them. A longer list belongs in a Dialog. In Vue, Ark UI does not load the rows.
Installation
Anatomy

Usage
<Popover>
<PopoverTrigger :asChild="true">
<Button variant="outline">View Items</Button>
</PopoverTrigger>
<PopoverContent>
<PopoverTitle class="sr-only">Items</PopoverTitle>
<ul class="flex flex-col gap-2">
<li v-for="item in items" :key="item">{{ item }}</li>
</ul>
</PopoverContent>
</Popover>FAQ
How is the list marked up?
The items are the strings Item 1, Item 2, and Item 3, mapped into li elements. The list is a ul with flex flex-col gap-2. PopoverTitle reads Items and has className="sr-only".
How does View Items become the trigger?
The trigger is a Button with variant="outline" and the label View Items. Activating it opens the panel. The three strings live in an items array outside the component.
Set asChild on PopoverTrigger and pass that one button. PopoverContent is the panel.
What does a row contain?
Each row is an li with text. gap-2 on the ul is the space between Item 1, Item 2, and Item 3. This file leaves the rows as text.
What names the list panel?
PopoverTitle is Items, with className="sr-only". The button says View Items. The visible content is the three list rows.
API Reference
Popover
Sets asChild. The rest is on the Popover page.
Button
Sets variant="outline". The rest is on the Button page.




