Dropdown

Attribute Type Documentation Default Value
id :any

HTML id attribute

position :string

Popover position relative to trigger

"bottom"
color :string

Popover color variant (primary, secondary, tertiary)

class :any

Additional CSS classes on the wrapper

dropdown_class :any

Additional CSS classes on the popover panel

rest :global
Required trigger * :slot

Trigger content that toggles the dropdown

Show slot attributes Hide slot attributes
class :any

trigger wrapper CSS classes

<:trigger>
  <.dm_btn variant="info">
    <.dm_mdi name="navigation" class="mr-1" />
    Navigate
  </.dm_btn>
</:trigger>
Required content * :slot

Dropdown panel content

Show slot attributes Hide slot attributes
class :any

content panel CSS classes

<:content>
  <li><a>Dashboard</a></li>
  <li><a>Analytics</a></li>
  <li><a>Reports</a></li>
  <li><a>Help</a></li>
</:content>