Dropdown Item

API reference

calcite-dropdown-item
v1.0.0-beta.83

Properties

PropertyAttributeDescriptionTypeValues
activeactive

Indicates whether the item is active.

booleanA boolean property should be present, or not
truefalse
hrefhref

optionally pass a href - used to determine if the component should render as anchor

optional
stringA custom string
undefined
iconEndicon-end

optionally pass an icon to display at the end of an item - accepts calcite ui icon names

optional
iconAccepts a Calcite UI Icon string
iconFlipRtlicon-flip-rtl

flip the icon(s) in rtl

optional
typedChoose from a set of typed values
bothendstart
iconStarticon-start

optionally pass an icon to display at the start of an item - accepts calcite ui icon names

optional
iconAccepts a Calcite UI Icon string
labellabel

Applies to the aria-label attribute on the button or hyperlink

optional
stringA custom string
undefined
relrel

The rel attribute to apply to the hyperlink

optional
stringA custom string
undefined
targettarget

The target attribute to apply to the hyperlink

optional
stringA custom string
undefined

Methods

NameDescriptionSignatureReturns
setFocus

Sets focus on the component.

setFocus() => Promise<void>Promise<void>

Slots

NameDescription
default (unnamed)

A slot for adding text.

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