Platzierung
Bottom (Standard), Top, Left und Right mit Pfeil zum Auslöser; Klick auf (?) öffnet.
Overlays
Explanation or small interaction opened by clicking a (?) icon or a button. Placement bottom (default), top, left or right with an arrow to the trigger; flips when space runs out. Optional title, link and close icon. Closes with Escape or a click outside; focus moves into the popover and back. Use the trigger slot for a custom button, or trigger="none" and popovertarget="<id>" on any button. Read-only hints belong in a tooltip.
Bottom (Standard), Top, Left und Right mit Pfeil zum Auslöser; Klick auf (?) öffnet.
Button-Trigger oder beliebiger Button im Slot trigger, mit Schließen-Icon.
<tc-popover> ohne Template-Tag; trigger="none" und ein beliebiger Button mit popovertarget öffnen es.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
title | '' | – | Bold first line; labels the popover. |
placement | 'bottom' | Preferred side of the trigger. | |
link | '' | – | URL of the trailing link. |
link_label | '' | – | Text of the trailing link (default "Learn more"). |
close | False | – | Show a close icon in the header. |
trigger | 'icon' | Built-in trigger: (?) icon button, outlined button, or none. | |
icon | 'help' | – | Icon of the built-in trigger. |
label | '' | – | Trigger text (button) or accessible name (icon); default "More information". |
close_label | '' | – | Accessible name of the close icon (default "Close"). |
{% slot trigger %} | – | Slot | Benannter Inhaltsbereich. |
Zusätzliche Attribute (z. B. class, aria-*, data-*) und HTMX-Kurzformen (get, post, get_url, post_url, target, swap, trigger, confirm) werden an das Element „root“ durchgereicht.