Dropdown
Outlined-Auslöser mit Pfeil; Menü öffnet darunter, Esc schließt und gibt den Fokus zurück.
Overlays
Trigger button with a popover menu (default slot: tc_menu_item, tc_menu_label, tc_menu_divider). Opens on click, Enter, Space or Arrow keys; arrows move through the items, Escape closes and returns focus to the trigger; activating an item closes the menu. Use variant="icon" for a ⋮ overflow menu.
Outlined-Auslöser mit Pfeil; Menü öffnet darunter, Esc schließt und gibt den Fokus zurück.
Primary/Secondary für Split-Aktionen, Icon-Variante (⋮) für Zeilenaktionen in Tabellen.
<tc-dropdown> mit <tc-menu-item>-Kindern; tc-select meldet die Auswahl, tc-change den Zustand.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
label | '' | – | Trigger text; accessible name for icon triggers (default "Actions"). |
icon | '' | – | Leading icon; for variant="icon" the only icon (default overflow-menu--vertical). |
variant | 'outlined' | Trigger style: button hierarchy or a subtle icon button. | |
size | 'md' | Trigger height: sm 28, md 36, lg 44 px. | |
placement | 'bottom-start' | Menu position relative to the trigger. | |
disabled | False | – | Disable the trigger. |
caret | True | – | Show the chevron after the label. |
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.