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="ghost" shape="square" size="sm">
    <.dm_mdi name="dots-vertical" />
  </.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-sm">Edit</a></li>
  <li><a class="text-sm">Duplicate</a></li>
  <li><a class="text-sm text-error">Remove</a></li>
</:content>