Skip to content
Child component of Dropdown

Overview

Each Dropdown Item must be contained within a parent Dropdown Group. This allows multiple Dropdown Group to exist within one Dropdown.

API reference

Properties

PropertyAttributeDescriptionTypeDefault
disableddisabledWhen true, prevents interaction and decreases the component's opacity.booleanfalse
hrefhrefSpecifies the URL of the linked resource, which can be set as an absolute or relative path. Determines if the component will render as an anchor.string
iconEndicon-endSpecifies an icon to display at the end of the component.IconName
iconFlipRtlicon-flip-rtlWhen the element direction is right-to-left ("rtl"), flips the component's iconStart and/or iconEnd.FlipContext
iconStarticon-startSpecifies an icon to display at the start of the component.IconName
labellabelSpecifies an accessible label for the component.string
relrelSpecifies the relationship to the linked resource defined in href.string
selectedselectedWhen true, the component is selected.booleanfalse
targettargetSpecifies the frame or window to open the linked resource.string

Slots

NameDescription
default (unnamed)A slot for adding text.

Styles

NameDescription
--calcite-dropdown-item-background-color-hoverSpecifies the component's background color when hovered.
--calcite-dropdown-item-background-color-pressSpecifies the component's background color when selected or active.
--calcite-dropdown-item-icon-color-hover
deprecated Specifies the color of the component's selection icon when hovered.
--calcite-dropdown-item-icon-color-pressSpecifies the color of the component's selection icon when selected or active.
--calcite-dropdown-item-text-color-pressSpecifies the component's text color when selected or active.
--calcite-dropdown-item-text-colorSpecifies the component's text color.

Events

NameDescriptionBehavior
calciteDropdownItemSelectFires when the component is selected.bubblescomposed

Methods

NameDescriptionSignature
componentOnReadyCreate a promise that resolves once component is fully loaded.componentOnReady(): Promise<this>
setFocusSets focus on the component.setFocus(options?: FocusOptions): Promise<void>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.