Popover
Implemented OverlayAnchored popup with interactive content.
Kumo reference: kumo-ui.com/components/popover/
Presentation commands show demo feedback. Read the interaction guide to connect real actions.
Basic
Notifications
You are all caught up. Good job!
Show template
{% load wdj %}
{% include "wdj/components/popover.html" with id="popover_basic" shape="square" icon="bell" aria_label="Notifications" title="Notifications" description="You are all caught up. Good job!" only %}
Form
Show template
{% load wdj %}
{% wdj_component "wdj/components/popover.html" id="popover_form" trigger_label="Form" %}
<form data-demo-form class="grid w-full max-w-lg gap-4">
{% include "wdj/components/input.html" with name="popover_email" label="Email" type="email" required=True only %}{% include "wdj/components/button.html" with label="Subscribe" type="submit" only %}
</form>
{% endwdj_component %}
Top
Notifications are up to date.
Show template
{% load wdj %}
{% wdj_component "wdj/components/popover.html" id="popover_top" trigger_label="Top" side="top" %}
<p class="text-base">Notifications are up to date.</p>
{% endwdj_component %}
Start aligned
Notifications are up to date.
Show template
{% load wdj %}
{% wdj_component "wdj/components/popover.html" id="popover_start_aligned" trigger_label="Start aligned" align="start" %}
<p class="text-base">Notifications are up to date.</p>
{% endwdj_component %}
Centered
Notifications are up to date.
Show template
{% load wdj %}
{% wdj_component "wdj/components/popover.html" id="popover_centered" trigger_label="Centered" align="center" %}
<p class="text-base">Notifications are up to date.</p>
{% endwdj_component %}
End aligned
Notifications are up to date.
Show template
{% load wdj %}
{% wdj_component "wdj/components/popover.html" id="popover_end_aligned" trigger_label="End aligned" align="end" %}
<p class="text-base">Notifications are up to date.</p>
{% endwdj_component %}
Scrollable content
Region 01
Region 02
Region 03
Region 04
Region 05
Region 06
Region 07
Region 08
Region 09
Region 10
Region 11
Region 12
Region 13
Region 14
Region 15
Region 16
Region 17
Region 18
Region 19
Region 20
Region 21
Region 22
Region 23
Region 24
Region 25
Region 26
Region 27
Region 28
Region 29
Region 30
Region 31
Region 32
Region 33
Region 34
Region 35
Region 36
Region 37
Region 38
Region 39
Region 40
Show template
{% load wdj %}
{% wdj_component "wdj/components/popover.html" id="audit-scroll-popover" trigger_label="Scrollable popover" %}
{% for option in audit_long_options %}<p class="py-2 text-base">{{ option.label }}</p>{% endfor %}
{% endwdj_component %}
Open on hover
Hover or focus keeps the panel available.
Show template
{% load wdj %}
{% wdj_component "wdj/components/popover.html" id="audit-hover-popover" trigger_label="Hover popover" open_on_hover=True %}
<p class="text-base">Hover or focus keeps the panel available.</p>
{% endwdj_component %}
Pointer anchor
This panel opens at the triggering pointer position.
Show template
{% load wdj %}
{% wdj_component "wdj/components/popover.html" id="audit-virtual-popover" trigger_label="Pointer-position popover" virtual_anchor=True %}
<p class="text-base">This panel opens at the triggering pointer position.</p>
{% endwdj_component %}
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| id | string | unset | Stable unique DOM ID; important for HTMX targets and focus restoration. |
| trigger | string / HTML slot | unset | Trigger; pass the documented value shown in the examples. |
| trigger_label | string | unset | Combobox without endpoint: enable the button trigger and search inside its popup. Calendar: calendar trigger text. |
| title | string | unset | Title; pass the documented value shown in the examples. |
| description | string | unset | Description; pass the documented value shown in the examples. |
| shape | string | unset | Shape; pass the documented value shown in the examples. |
| icon | string | unset | Icon; pass the documented value shown in the examples. |
| aria_label | string | unset | Aria label; pass the documented value shown in the examples. |
| slot | string / HTML slot | unset | Rich HTML supplied by the wdj_component block tag, rendered in an isolated context. |
| side | string | bottom | Side; pass the documented value shown in the examples. |
| align | string | start | Align; pass the documented value shown in the examples. |
| open_on_hover | bool | False | Open on hover; pass the documented value shown in the examples. |
| virtual_anchor | bool | False | Virtual anchor; pass the documented value shown in the examples. |
| class | string | "" | Class; pass the documented value shown in the examples. |