Popover
Floating content panel
Floating panel that appears on click.
Usage
Alignment
Start
Default alignment to the left.
Center
Centered below the trigger.
End
Aligned to the right.
Side
Bottom
Default position below the trigger.
Top
Position above the trigger.
Features
- Closes on outside click
- Closes on
Escapekey - Custom content support
Props
| prop | type | default | description |
|---|---|---|---|
| trigger | ReactNode | required | Element that opens the popover |
| children | ReactNode | required | Popover content |
| align | "start" | "center" | "end" | "start" | Horizontal alignment |
| side | "top" | "bottom" | "bottom" | Vertical position |