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="warning">
    <.dm_mdi name="alert" class="mr-1" />
    Warnings
  </.dm_btn>
</:trigger>
Required content * :slot

Dropdown panel content

Show slot attributes Hide slot attributes
class :any

content panel CSS classes

<:content>
  <li><a class="text-warning">View warnings</a></li>
  <li><a class="text-warning">Ignore warnings</a></li>
  <li><a class="text-error">Delete items</a></li>
</:content>