API reference
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| beforeBack | Specifies a function to run before the component is removed from its parent | (() => Promise<void>) | undefined | ||
| beforeClose | Specifies a function to run before the component closes. | () => Promise<void> | ||
| closable | closable | When | boolean | false |
| closed | closed | When | boolean | false |
| collapsed | collapsed | When | boolean | false |
| collapsible | collapsible | When | boolean | false |
| description | description | Specifies a the component's description. | string | |
| disabled | disabled | When | boolean | false |
| heading | heading | Specifies the component's heading text. | string | |
| headingLevel | heading-level | Specifies the heading level number of the component's | HeadingLevel | |
| icon | icon | Specifies an icon to display. | IconName | |
| iconFlipRtl | icon-flip-rtl | When | boolean | false |
| loading | loading | When | boolean | false |
| menuOpen | menu-open | When | boolean | false |
| messageOverrides | Overrides individual strings used by the component. | Record<string, unknown> | undefined | ||
| overlayPositioning | overlay-positioning | Specifies the type of positioning to use for overlaid content, where:
| OverlayPositioning | "absolute" |
| scale | scale | Specifies the size of the component. | Scale | "m" |
| selected | selected | When | boolean | false |
| topLayerDisabled | top-layer-disabled | When Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components. | boolean | false |
Slots
| Name | Description |
|---|---|
| default (unnamed) | A slot for adding custom content. |
| action-bar | A slot for adding a |
| alerts | A slot for adding |
| 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 |
| header-actions-end | A slot for adding |
| header-content | A slot for adding custom content to the component's header. |
| header-menu-actions | A slot for adding an overflow menu with |
| heading | A slot for adding content to the heading area of the default header. Takes precedence over the |
| description | A slot for adding content to the description area of the default header. Takes precedence over the |
| fab | A slot for adding a |
| footer | A slot for adding custom content to the component's footer. Should not be used with the |
| footer-end | A slot for adding a trailing footer custom content. Should not be used with the |
| footer-start | A slot for adding a leading footer custom content. Should not be used with the |
Styles
| Name | Description |
|---|---|
| --calcite-flow-item-footer-padding | --calcite-flow-footer-space instead. Specifies the padding of the component's footer. |
| --calcite-flow-item-header-border-block-end | --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 |
| --calcite-flow-icon-color | Specifies the color of the component's |
| --calcite-flow-description-text-color | Specifies the text color of the component's |
| --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 |
| --calcite-flow-content-bottom-space | Specifies the padding of the component's |
| --calcite-flow-header-background-color | Specifies the background color of the component's header. |
| --calcite-flow-footer-background-color | Specifies the background color of the component's footer. |
| --calcite-flow-space | Specifies the padding of the component's |
| --calcite-flow-header-content-space | Specifies the padding of the component's |
| --calcite-flow-footer-space | Specifies the padding of the component's footer. |
| --calcite-action-background-color | Specifies the background color of the component's |
| --calcite-action-background-color-hover | Specifies the background color of the component's |
| --calcite-action-background-color-pressed | Specifies the background color of the component's |
| --calcite-action-text-color-hover | Specifies the text and icon color of the component's |
| --calcite-action-text-color-pressed | Specifies the text and icon color of the component's |
| --calcite-popover-border-color | Specifies the border color of the component's internally rendered |
| --calcite-flow-header-action-background-color-hover | Specifies the background color of any |
| --calcite-flow-header-action-background-color-press | Specifies the background color of any |
| --calcite-flow-header-action-background-color | Specifies the background color of any |
| --calcite-flow-header-action-indicator-color | Specifies the color of any |
| --calcite-flow-header-action-text-color-press | Specifies the text color of any |
| --calcite-flow-header-action-text-color | Specifies the text color of any |
Events
| Name | Description | Behavior |
|---|---|---|
| calciteFlowItemBack | Fires when the component's back button is clicked. | |
| calciteFlowItemClose | Fires when the component's close button is clicked. | |
| calciteFlowItemCollapse | Fires when the component's content area is collapsed. | |
| calciteFlowItemExpand | Fires when the component's content area is expanded. | |
| calciteFlowItemScroll | Fires when the component's content is scrolled. | |
| calciteFlowItemToggle | Fires when the component's collapse button is clicked. |
Methods
| Name | Description | Signature |
|---|---|---|
| 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> |