A floating surface anchored to a trigger. Supports four placements.
Copy the command below and run it in your terminal.
bunx @sivir/ui add popover
pnpm dlx @sivir/ui add popover
npx @sivir/ui add popover
yarn dlx @sivir/ui add popover
Import Popover and compose it with sub-components:
import * as Popover from '$lib/sivir/components/popover'; <Popover.Root> <Popover.Trigger>Open</Popover.Trigger> <Popover.Content class="w-64"> Content here </Popover.Content> </Popover.Root>
Explore the Popover in different placements and compositions.