Animate UI

Popover

An accessible popup anchored to a button.

Made by imskyleen
Edit on GitHub

Installation

Usage

<Popover>
  <PopoverTrigger>Open popover</PopoverTrigger>
  <PopoverPanel>
    <div>Popover panel</div>
  </PopoverPanel>
</Popover>

API Reference

Popover

PopoverTrigger

PopoverPanel

PropTypeDefault
transition?
Transition
{ type: 'spring', stiffness: 300, damping: 25 }
...props?
HTMLMotionProps<"div">
-

The forceMount and asChild properties are not supported in the PopoverPanel component, as it is used for animation.

PopoverClose

Credits

Built by Skyleen. The source code is available on GitHub.