Popover
A small panel attached to a button, for one field or setting, that opens as a bottom sheet on a phone.
Examples
Lists
- Weekly notes12 items
- Design review8 items
- Reading list21 items
Usage
Use it when
- One field, one switch or one short list belongs beside the control that opens it, and the page should stay readable and live.
- A column header, a chip or an icon button needs a menu with controls in it, not only commands.
Use something else when
- The content is a list of commands with no controls. Use DropdownMenu instead.
- The content is only the name of a control. Use Tooltip instead.
- The task has a submit that takes time, or more than one field group. Use Dialog instead.
- The content scrolls, or must be read from the bottom of a phone. Use Sheet instead.
- A yes or no before something is removed. Use AlertDialog instead.
Rules
General
Avoid
Limits
Install
npx shadcn@latest add https://kaanarici.com/r/cobalt/popover.jsonimport { Popover, PopoverTrigger, PopoverContent, PopoverHeader, PopoverTitle, PopoverDescription, usePopoverSheet } from "@/components/cobalt/ui/popover"