{% load wagtailadmin_tags %} {% comment "text/markdown" %} Reusable dropdown menu component built with Tippy.js using the Stimulus DropdownController. - `theme` (string?) - visual variants of the component - `classname` (string?) - more classes for parent element - `attrs` (string?) - more attributes for parent element - `toggle_icon` (string?) - toggle icon identifier - `toggle_label` (string?) - Visible label for the toggle button - `toggle_suffix` (string?) - Visible content for the toggle button after the icon - `toggle_aria_label` (string?) - aria-label for the toggle button - `toggle_describedby` (string?) - aria-describedby for the toggle button - `toggle_classname` (string?) - additional toggle classes - `toggle_tooltip_offset` (string?) - Tooltip offset prop - `hide_on_click` (boolean?) - Whether or not the tooltip should hide when clicking inside - `keep_mounted` (boolean?) - Whether or not the tooltip should keep its DOM node mounted when hidden - `children` - Dropdown contents (`a` and `button` elements only) {% endcomment %} {% fragment as class %}{% classnames 'w-dropdown' classname %}{% if theme %} w-dropdown--{{ theme }}{% endif %}{% endfragment %}