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="secondary">
    <.dm_mdi name="account-circle" />
    User
  </.dm_btn>
</:trigger>
Required content * :slot

Dropdown panel content

Show slot attributes Hide slot attributes
class :any

content panel CSS classes

<:content>
  <li><a><.dm_mdi name="account" class="mr-2" />Profile</a></li>
  <li><a><.dm_mdi name="cog" class="mr-2" />Settings</a></li>
  <li><a><.dm_mdi name="logout" class="mr-2" />Logout</a></li>
</:content>