Skip to content
deprecated in v3.2Refer to the Action Bar component documentation.
Learn more

Overview

Action Pad accommodates for horizontal and vertical layouts that can be expanded to show text labels. Distinct from Action Bar, Action Pad has rounded corners and box-shadows and should be positioned above other content. Built from a group of Actions, the Action Pad handles props like positioning, light/dark modes, and expand controls.

Action Pad was created to be placed on a map, or floating by itself in an area of the interface. For a flush inline group of Actions, please consider Action Bar.

Usage

  • Editing tools
  • Drawing/polygon tools
  • Zoom and various map controls

Sample

Accessibility

Keyboard navigation

KeyFunction
SpacePresses the calcite-action.
EnterPresses the calcite-action.
TabMoves focus in and out of component.
Tab and ShiftMoves focus in and out of component.

Writing and copy

Refer to Action for writing and copy guidelines.

API reference

Properties

PropertyAttributeDescriptionTypeDefault
actionsEndGroupLabelactions-end-group-labelSpecifies the accessible label for the last calcite-action-group.string
expandDisabledexpand-disabledWhen true, the expand-toggling behavior is disabled.booleanfalse
expandedexpandedWhen true, expands the component and its contents.booleanfalse
layoutlayoutSpecifies the layout of the component.Extract<"horizontal" | "vertical" | "grid", Layout>"vertical"
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"
positionpositionSpecifies the position of the component depending on the element's dir property.Extract<"start" | "end", Position>
scalescaleSpecifies the size of the expand calcite-action.Scale"m"
selectionAppearanceselection-appearanceSpecifies the selection appearance of the componentExtract<"neutral" | "highlight", SelectionAppearance>"neutral"

Slots

NameDescription
default (unnamed)A slot for adding calcite-actions to the component.
expand-tooltipA slot to set the calcite-tooltip for the expand toggle.

Styles

NameDescription
--calcite-action-pad-corner-radiusSpecifies the component's border radius.
--calcite-action-pad-expanded-max-widthWhen expanded and layout is "vertical", specifies the component's maximum width.
--calcite-action-pad-items-spaceSpecifies the component's space between slotted components.

Events

NameDescriptionBehavior
calciteActionPadCollapseFires when the component's content area is collapsed.bubblescomposed
calciteActionPadExpandFires when the component's content area is expanded.bubblescomposed
calciteActionPadToggleFires when the expanded property is toggled.bubblescomposed

Methods

NameDescriptionSignature
componentOnReadyCreate a promise that resolves once component is fully loaded.componentOnReady(): Promise<this>
setFocusSets focus on the component's first focusable element.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.