# Popover
## Usage This component ships a `popover()` macro for Jinja and Nunjucks. Basecoat popovers are inline-positioned relative to the `.popover` wrapper. This differs from shadcn/ui's portalled Base UI implementation, but keeps the markup dependency-free and works with Basecoat's existing dropdown/select positioning model. ```html ``` ```html
```
### HTML structure
<div class="popover">
Relative wrapper for the trigger and inline popover content.
<button type="button" aria-expanded="false" aria-controls="{ POPOVER_ID }">
Trigger button. The script toggles aria-expanded and opens or closes the content.
<div data-popover id="{ POPOVER_ID }" aria-hidden="true">
Popover content. Supports data-side="top|right|bottom|left" and data-align="start|center|end".
## Examples ### Basic
### Align
### Sides
### With form
### RTL Popover alignment uses logical start and end offsets. Set `dir="rtl"` on a parent to flip start/end alignment.