--- layout: layouts/component.njk title: Dropdown Menu description: Displays a menu to the user — such as a set of actions or functions — triggered by a button. --- {% from "macros/code_block.njk" import code_block %} {% from "macros/code_preview.njk" import code_preview %} {% from "components/dropdown-menu.njk" import dropdown_menu %} {% set code %}{% call dropdown_menu( id="dropdown-menu", trigger="Open", trigger_attrs={"class": "btn-outline"}, content_attrs={"class": "min-w-56"} ) %}
Account Options


{% endcall %}{% endset %} {{ code_preview("dropdown-menu", code | prettyHtml) }}

Usage

You can use one of the btn classes to style any element as a button: