Child component of Flow

API reference

Properties

PropertyAttributeDescriptionTypeDefault
beforeBack

Specifies a function to run before the component is removed from its parent calcite-flow.

(() => Promise<void>) | undefined
beforeClose

Specifies a function to run before the component closes.

() => Promise<void>
closableclosable

When true, displays a close button in the trailing side of the component's header.

booleanfalse
closedclosed

When true, hides the component.

booleanfalse
collapsedcollapsed

When true, hides the component's content area.

booleanfalse
collapsiblecollapsible

When true, the component is collapsible.

booleanfalse
descriptiondescription

Specifies a the component's description.

string
disableddisabled

When true, prevents interaction and decreases the component's opacity.

booleanfalse
headingheading

Specifies the component's heading text.

string
headingLevelheading-level

Specifies the heading level number of the component's heading for proper document structure, without affecting visual styling.

HeadingLevel
iconicon

Specifies an icon to display.

IconName
iconFlipRtlicon-flip-rtl

When true and the element direction is right-to-left ("rtl"), flips the components icon`.

booleanfalse
loadingloading

When true, a busy indicator is displayed.

booleanfalse
menuOpenmenu-open

When true, the action menu items in the header-menu-actions slot are open.

booleanfalse
messageOverrides

Overrides individual strings used by the component.

Record<string, unknown> | undefined
overlayPositioningoverlay-positioning

Specifies the type of positioning to use for overlaid content, where:

"absolute" works for most cases - positioning the component inside of overflowing parent containers, which affects the container's layout, and

"fixed" is used to escape an overflowing parent container, or when the reference element's position CSS property is "fixed".

OverlayPositioning"absolute"
scalescale

Specifies the size of the component.

Scale"m"
selectedselected

When true, the component is displayed within a parent calcite-flow.

booleanfalse
topLayerDisabledtop-layer-disabled

When true and the component is open, disables top layer placement.

Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.

booleanfalse

Slots

NameDescription
default (unnamed)

A slot for adding custom content.

action-bar

A slot for adding a calcite-action-bar to the component.

alerts

A slot for adding calcite-alerts to the component.

content-top

A slot for adding content above the unnamed (default) slot and below the action-bar slot (if populated).

content-bottom

A slot for adding content below the unnamed (default) slot and above the footer slot (if populated)

header-actions-start

A slot for adding calcite-actions or content to the start side of the component's header.

header-actions-end

A slot for adding calcite-actions or content to the end side of the component's header.

header-content

A slot for adding custom content to the component's header.

header-menu-actions

A slot for adding an overflow menu with calcite-actions inside a calcite-dropdown.

heading

A slot for adding content to the heading area of the default header. Takes precedence over the heading property.

description

A slot for adding content to the description area of the default header. Takes precedence over the description property.

fab

A slot for adding a calcite-fab (floating action button) to perform an action.

Styles

NameDescription
--calcite-flow-item-header-border-block-end
deprecated in v3.0.0, removal target v6.0.0 - Use --calcite-flow-border-color instead. Specifies the component header's block end border.
--calcite-flow-corner-radius

Specifies the component's corner radius.

--calcite-flow-heading-text-color

Specifies the text color of the component's heading.

--calcite-flow-icon-color

Specifies the color of the component's icon.

--calcite-flow-description-text-color

Specifies the text color of the component's description.

--calcite-flow-border-color

Specifies the component's border color.

--calcite-flow-background-color

Specifies the component's background color.

--calcite-flow-content-top-space

Specifies the padding of the component's content-top slot.

--calcite-flow-content-bottom-space

Specifies the padding of the component's content-bottom slot.

--calcite-flow-header-background-color

Specifies the background color of the component's header.

--calcite-flow-space

Specifies the padding of the component's unnamed (default) slot.

--calcite-flow-header-content-space

Specifies the padding of the component's header-content slot.

--calcite-action-background-color

Specifies the background color of the component's closable, collapsible, and back calcite-actions. Applies to any slotted calcite-actions.

--calcite-action-background-color-hover

Specifies the background color of the component's closable, collapsible, and back calcite-actions when hovered. Applies to any slotted calcite-actions.

--calcite-action-background-color-pressed

Specifies the background color of the component's closable, collapsible, and back calcite-actions when pressed. Applies to any slotted calcite-actions.

--calcite-action-text-color-hover

Specifies the text and icon color of the component's closable, collapsible, and back calcite-actions when hovered. Applies to any slotted calcite-actions.

--calcite-action-text-color-pressed

Specifies the text and icon color of the component's closable, collapsible, and back calcite-actions when pressed. Applies to any slotted calcite-actions.

--calcite-popover-border-color

Specifies the border color of the component's internally rendered calcite-popover, which is rendered within a calcite-action menu when slotted calcite-actions are present in the header-actions-end slot. Applies to any slotted calcite-popovers.

--calcite-flow-header-action-background-color-hover

Specifies the background color of any calcite-actions in the component's header when hovered.

--calcite-flow-header-action-background-color-press

Specifies the background color of any calcite-actions in the component's header when pressed.

--calcite-flow-header-action-background-color

Specifies the background color of any calcite-actions in the component's header.

--calcite-flow-header-action-indicator-color

Specifies the color of any calcite-actions indicator in the component's header.

--calcite-flow-header-action-text-color-press

Specifies the text color of any calcite-actions in the component's header when pressed.

--calcite-flow-header-action-text-color

Specifies the text color of any calcite-actions in the component's header.

Events

NameDescriptionBehavior
calciteFlowItemBack

Fires when the component's back button is clicked.

bubblescomposedcancelable
calciteFlowItemClose

Fires when the component's close button is clicked.

bubblescomposed
calciteFlowItemCollapse

Fires when the component's content area is collapsed.

bubblescomposed
calciteFlowItemExpand

Fires when the component's content area is expanded.

bubblescomposed
calciteFlowItemScroll

Fires when the component's content is scrolled.

bubblescomposed
calciteFlowItemToggle

Fires when the component's collapse button is clicked.

bubblescomposed

Methods

NameDescriptionSignature
componentOnReady

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

componentOnReady(): Promise<this>
scrollContentTo

Scrolls the component's content to a specified set of coordinates.

scrollContentTo(options?: ScrollToOptions): Promise<void>
setFocus

Sets 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.