UI MarCom 3

Dropdown Stable Dark theme

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 buttonString
right-alignedAlignment of the opened panel
themeSet the color scheme of the componentlight, darklight
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
>
  <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>

Dark theme

Apple PieOrange JuiceBanana Joe
<uimc-dropdown 
  label="Dropdown"
  theme="dark"
>
  <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>