Dropdown Item

<wa-dropdown-item> Experimental Since 3.0

Represents an individual item within a dropdown menu, supporting standard items, checkboxes, and submenus.

This component must be used as a child of <wa-dropdown>. Please see the Dropdown docs to see examples of this component in action.

Importing

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/webawesome@0.14.0/components/dropdown-item/dropdown-item.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/dropdown-item/dropdown-item.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/dropdown-item/dropdown-item.js';

To import this component for React 18 or below, use the following code:

import WaDropdownItem from '@awesome.me/webawesome/dist/react/dropdown-item/index.js';

Slots

Learn more about using slots.

Attributes & Properties

Learn more about attributes and properties.

Methods

Learn more about methods.

Events

Learn more about events.

CSS parts

Learn more about CSS parts.

Dependencies

This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.

Need a hand? Report a bug Ask for help
    No results