Active theme set to LightDarkLight high contrastDark high contrast and saved in preferences.
Copied to clipboard.
Error submitting your feedback! Please try again.
We’re hiring frontend developers! View open positions.

Dropdown ItemReady

Dropdown item populates dropdown with actions. Items can be placed either inside a dropdown group or directly inside a dropdown component.

Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
Edit in CodePen
Open in new window
View RTL
<nord-dropdown-item>Show keyboard shortcuts</nord-dropdown-item>
<nord-dropdown-item>Help & Support</nord-dropdown-item>
<nord-dropdown-item>API</nord-dropdown-item>

Properties

PropertyAttributeDescriptionTypeDefault
hrefhref

The url the dropdown item should link to.

string | undefinedundefined

Slots

Slot nameDescription
Default slotThe dropdown item content.
startUsed to place content before dropdown item text. Typically used for icons.
endUsed to place content after dropdown item text. Typically used for icons.

Methods

Method nameParametersDescription
focus(options?: FocusOptions) => voidoptions: An object which controls aspects of the focusing process.
Programmatically move focus to the component.
blur() => voidN/AProgrammatically remove focus from the component.
click() => voidN/AProgrammatically simulates a click on the component.

Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do #

  • Group dropdown items into dropdown groups based on related categories.
  • Use group headings to clarify the category of a section.

Don’t #

  • Don’t use dropdown item outside of dropdown group and dropdown components.

Content guidelines #

Dropdown items should be always written in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):

Create user
Create User

Dropdown items should always lead with a strong verb that encourages action. Use the {verb}+{noun} format except in the case of common actions like Save, Close or Cancel:

Edit row
Editing options

Avoid unnecessary words and articles in dropdown items, such as “the”, “an” or “a”:

Change theme
Change the theme

Avoid ending dropdown items in punctuation:

Switch user
Switch user.

Avoid all caps for dropdown items:

Rename
RENAME

Keep dropdown items to a single line of text:

Change theme
Change the theme
of the veterinary application.

Integration

For integration guidelines, please see Web Components documentation. This documentation explains how to implement and use Nord Web Components across different technologies such as Vue.js, React, or Vanilla JavaScript.

Integration Guidelines

Localization

Nord provides a lightweight solution for localizing its components. Not all components need localizing, as for the most part snippets of text are set per instance. For full localization guidelines, please see Localization documentation.

Localization Guidelines

Troubleshooting

If you experience any issues while using Nord Web Components, please head over to the Support page for more guidelines and ways to contact us.


Was this page helpful?

YesNo
Send feedback

We use this feedback to improve our documentation.