UI MarCom 3

Dropdown Stable

A Dropdown is a small overlay that can contain any type of content, which are displayed on demand.

<uimc-dropdown 
  label="Dropdown"
>
</uimc-dropdown>

AttributeDescriptionValuesDefault
labelText for the toggle button
right-alignedAlignment of the opened panel
SlotSlotted content
defaultSlot for e.g. a menu

Left aligned dropdown

Apple PieOrange JuiceBanana Joe
<uimc-dropdown 
  label="Dropdown"
>
  <uimc-menu>
    <uimc-menu-item>Apple Pie</uimc-menu-item>
    <uimc-menu-item>Orange Juice</uimc-menu-item>
    <uimc-menu-item>Banana Joe</uimc-menu-item>
  </uimc-menu>
</uimc-dropdown>

Right aligned dropdown

Apple PieOrange JuiceBanana Joe
<uimc-dropdown 
  label="Dropdown"
  right-aligned="true"
>
  <uimc-menu>
    <uimc-menu-item>Apple Pie</uimc-menu-item>
    <uimc-menu-item>Orange Juice</uimc-menu-item>
    <uimc-menu-item>Banana Joe</uimc-menu-item>
  </uimc-menu>
</uimc-dropdown>