Skip to content
Child component of Flow

Overview

Sample

API reference

Properties

PropertyAttributeDescriptionTypeDefault
beforeBackSpecifies a function to run before the component is removed from its parent calcite-flow.(() => Promise<void>) | undefined
beforeCloseSpecifies a function to run before the component closes.() => Promise<void>
closableclosableWhen true, displays a close button in the trailing side of the component's header.booleanfalse
closedclosedWhen true, hides the component.booleanfalse
collapsedcollapsedWhen true, hides the component's content area.booleanfalse
collapsiblecollapsibleWhen true, the component is collapsible.booleanfalse
descriptiondescriptionSpecifies a the component's description.string
disableddisabledWhen true, prevents interaction and decreases the component's opacity.booleanfalse
headingheadingSpecifies the component's heading text.string
headingLevelheading-levelSpecifies the heading level number of the component's heading for proper document structure, without affecting visual styling.HeadingLevel
iconiconSpecifies an icon to display.IconName
iconFlipRtlicon-flip-rtlWhen true and the element direction is right-to-left ("rtl"), flips the components icon`.booleanfalse
loadingloadingWhen true, a busy indicator is displayed.booleanfalse
menuOpenmenu-openWhen true, the action menu items in the header-menu-actions slot are open.booleanfalse
messageOverridesOverrides individual strings used by the component.Record<string, unknown> | undefined
overlayPositioningoverlay-positioningSpecifies 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"
scalescaleSpecifies the size of the component.Scale"m"
selectedselectedWhen true, the component is displayed within a parent calcite-flow.booleanfalse
topLayerDisabledtop-layer-disabledWhen 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-barA slot for adding a calcite-action-bar to the component.
alertsA slot for adding calcite-alerts to the component.
content-topA slot for adding content above the unnamed (default) slot and below the action-bar slot (if populated).
content-bottomA slot for adding content below the unnamed (default) slot and above the footer slot (if populated)
header-actions-startA slot for adding calcite-actions or content to the start side of the component's header.
header-actions-endA slot for adding calcite-actions or content to the end side of the component's header.
header-contentA slot for adding custom content to the component's header.
header-menu-actionsA slot for adding an overflow menu with calcite-actions inside a calcite-dropdown.
fabA slot for adding a calcite-fab (floating action button) to perform an action.

Styles

NameDescription
--calcite-flow-item-header-border-block-end
deprecated Use --calcite-flow-border-color instead. Specifies the component header's block end border.
--calcite-flow-corner-radiusSpecifies the component's corner radius.
--calcite-flow-heading-text-colorSpecifies the text color of the component's heading.
--calcite-flow-icon-colorSpecifies the color of the component's icon.
--calcite-flow-description-text-colorSpecifies the text color of the component's description.
--calcite-flow-border-colorSpecifies the component's border color.
--calcite-flow-background-colorSpecifies the component's background color.
--calcite-flow-header-background-colorSpecifies the background color of the component's header.
--calcite-flow-spaceSpecifies the padding of the component's unnamed (default) slot.
--calcite-flow-header-content-spaceSpecifies the padding of the header-content slot.
--calcite-action-background-colorSpecifies the background color of the component's closable, collapsible, and back calcite-actions. Applies to any slotted calcite-actions.
--calcite-action-background-color-hoverSpecifies 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-pressedSpecifies 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-hoverSpecifies 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-pressedSpecifies 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-colorSpecifies 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-hoverSpecifies the background color of any calcite-actions in the component's header when hovered.
--calcite-flow-header-action-background-color-pressSpecifies the background color of any calcite-actions in the component's header when pressed.
--calcite-flow-header-action-background-colorSpecifies the background color of any calcite-actions in the component's header.
--calcite-flow-header-action-indicator-colorSpecifies the color of any calcite-actions indicator in the component's header.
--calcite-flow-header-action-text-color-pressSpecifies the text color of any calcite-actions in the component's header when pressed.
--calcite-flow-header-action-text-colorSpecifies the text color of any calcite-actions in the component's header.

Events

NameDescriptionBehavior
calciteFlowItemBackFires when the component's back button is clicked.bubblescomposedcancelable
calciteFlowItemCloseFires when the component's close button is clicked.bubblescomposed
calciteFlowItemCollapseFires when the component's content area is collapsed.bubblescomposed
calciteFlowItemExpandFires when the component's content area is expanded.bubblescomposed
calciteFlowItemScrollFires when the component's content is scrolled.bubblescomposed
calciteFlowItemToggleFires when the component's collapse button is clicked.bubblescomposed

Methods

NameDescriptionSignature
componentOnReadyCreate a promise that resolves once component is fully loaded.componentOnReady(): Promise<this>
scrollContentToScrolls the component's content to a specified set of coordinates.scrollContentTo(options?: ScrollToOptions): Promise<void>
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.