Child component of Segmented Control

API reference

Properties

PropertyAttributeDescriptionTypeDefault
checkedchecked

When true, the component is checked.

booleanfalse
iconEndicon-end

Specifies an icon to display at the end of the component.

IconName | undefined
iconFlipRtlicon-flip-rtl

When true, the icon will be flipped when the element direction is right-to-left ("rtl").

booleanfalse
iconStarticon-start

Specifies an icon to display at the start of the component.

IconName | undefined
valuevalue

The component's value.

any | null

Styles

NameDescription
--calcite-segmented-control-color

Specifies the component's color.

--calcite-segmented-control-background-color

Specifies the component's background color.

--calcite-segmented-control-shadow

Specifies the component's shadow.

--calcite-segmented-control-icon-color

Specifies the icons's color.

Methods

NameDescriptionSignature
componentOnReady

Creates a promise that resolves once the component is fully loaded.

componentOnReady(): Promise<this>

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