Popover
A popover component that displays content in a floating panel when triggered. Built on top of bits-ui's Popover for accessibility and keyboard navigation.
Import
import Popover from "$lib/components/Popover.svelte"; Basic Usage
A simple popover with a button trigger and content.
Substract
Properties
Name
Type
Description
showArrow
Type
boolean
Default: false
Whether to show the arrow pointing to the trigger.
showClose
Type
boolean
Default: false
Whether to show the close button.
sideOffset
Type
number
Default: 8
Offset distance from the trigger element.