Dropdown

Dropdowns are small panels that open on demand. They let users access additional content and actions without cluttering the page.

Color

Color define the background color of the default activator (button).

TypeDefault Value
stringnull
  • Account settings
  • Support
  • License
  • Sign out
<NVStack Height="200px" Items="start" Justify="center">
   <NVDropdown Label="Options" Color="primary">
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
</NVStack>

DropWidth

Set the width of the dropped element.

TypeDefault Value
stringnull
  • Account settings
  • Support
  • License
  • Sign out
<NVStack Height="200px" Items="start" Justify="center">
  <NVDropdown Label="Options" DropWidth="400px">
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
</NVStack>

KeepOpen

When true, the dropdown stay open when clicking inside the drop content.

TypeDefault Value
boolfalse
  • Account settings
  • Support
  • License
  • Sign out
<NVStack Height="200px" Items="start" Justify="center">
  <NVDropdown Label="Options" KeepOpen>
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
</NVStack>

Label

Label define the label of the default activator (button).

TypeDefault Value
stringnull
  • Account settings
  • Support
  • License
  • Sign out
<NVStack Height="200px" Items="start" Justify="center">
   <NVDropdown Label="Options">
     <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
</NVStack>

Open

When true, the drop will be visible.

TypeDefault Value
boolfalse
  • Account settings
  • Support
  • License
  • Sign out
<NVStack Height="200px" Items="start" Justify="center">
  <NVDropdown Label="Options" Open>
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
</NVStack>

OpenChanged

EventCallback emit when the open Param changed (for dual binding).

Placement

Placement is used to set the position of the drop down content.
Available values are : "bottom", "bottom-start", "bottom-end", "top","top-start", "top-end", "left", "left-start", "left-end", "right", "right-start", "right-end"

TypeDefault Value
stringbottom
  • Account settings
  • Support
  • License
  • Sign out
  • Account settings
  • Support
  • License
  • Sign out
  • Account settings
  • Support
  • License
  • Sign out
  • Account settings
  • Support
  • License
  • Sign out
  • Account settings
  • Support
  • License
  • Sign out
  • Account settings
  • Support
  • License
  • Sign out
<NVStack Height="200px" Items="start" Justify="center" Gutter="2" MB="4">
  <NVDropdown Label="Bottom" Placement="bottom">
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
  <NVDropdown Label="Bottom Start" Placement="bottom-start">
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
  <NVDropdown Label="Bottom End" Placement="bottom-end">
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
</NVStack>
<NVStack Height="200px" Items="start" Justify="center" Gutter="2">
  <NVDropdown Label="Top" Placement="top">
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
  <NVDropdown Label="Top Start" Placement="top-start">
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
  <NVDropdown Label="Top End" Placement="top-end">
    <NVList Select>
      <NVListItem>Account settings</NVListItem>
      <NVListItem>Support</NVListItem>
      <NVListItem>License</NVListItem>
      <NVListItem>Sign out</NVListItem>
    </NVList>
  </NVDropdown>
</NVStack>