Axon 911 Frontend DocsAxon 911 Frontend Docs
Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Blocks
  2. Call Dock
  3. API and Development

Call Dock

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Import CallDock, CallDockControls, CallDockDetails, CallDockError, CallDockSkeleton from @prepared911/ui/blocks/call-dock. See props.ts for the props and schema.ts for the declaration (inputs and slots).
Exports
ExportRole
CallDockLabelled section region for the active call. An inverted surface that owns presence from open, entry and exit motion, and the size hold during the exit
CallDockDetailsThe group of the call's number, caller and timer
CallDockControlsThe group of the call's controls. Leads them with a vertical rule while the tray holds details too
CallDockSkeletonTray-sized loading content
CallDockErrorCompact failure content: a glyph, a message and an optional Retry
CallDockProps, CallDockDetailsProps, CallDockControlsProps, CallDockSkeletonProps, CallDockErrorProps and the types they build onTypes
CallDock props
PropTypeNotes
openbooleanRequired. Whether a call is active; the shell decides it. The tray is present while it is true, whatever children renders
labelLocalizedMessageRequired. Accessible name of the region
childrenReactNodeWhat fills the tray, usually one module mount that renders the parts. Optional
classNamestringAppended to the tray surface; put rules in @layer chroma.overrides
refRef<HTMLElement>The region element
data-*stringForwarded to the region
There is no placement, no details, no controls, no style, and no as.
Part props
CallDockDetails and CallDockControls take children, className, ref (Ref<HTMLDivElement>) and data-*. CallDockSkeleton takes className, ref and data-*.
CallDockError props
PropTypeNotes
messageLocalizedMessageRequired. Short message saying what failed; announced politely
iconGlyphRequired. The error glyph, decorative
onRetry() => voidOptional. Shows the Retry Button; needs retryLabel
retryLabelLocalizedMessageLabel of the Retry Button; needs onRetry
className, ref, data-*As the other parts
onRetry and retryLabel come together or not at all; either one alone is a type error.
Removed
details and controls (replaced by children with the parts; see "Migration" in CONTRACT.md), and from Dock: Dock, DockGroup, DockItem, DockPlacement, DockRestoreDetails, DockItemProps and the other Dock types, placement, onRestore, restoreState, itemId, trailing, hideLabel, minimizedAnnouncement, restoredAnnouncement, and the focus fallback that served restoring.
Props
NameTypeDefaultDescription
labelLocalizedMessage—Accessible name of the tray's region.
openboolean—Whether a call is active. The shell decides it, usually from the calls domain, and the tray follows: present while true, sliding out and leaving the tree after false. It does not depend on children: with true and nothing to show, the tray still shows.
childrenReactNode—What fills the tray: usually one module mount, such as a remote that renders {@link CallDockDetails } and {@link CallDockControls }, with {@link CallDockSkeleton } and {@link CallDockError } as its loading and failure states. Anything may sit between the tray and the parts, including wrappers that generate no box of their own.
classNamestring—Classes appended to the tray's surface. Put the rules in @layer chroma.overrides.
refRef<HTMLElement>—Ref to the tray's section region.
Storybook
Interactive examples and edge cases for this component are in Storybook.
DefaultOpens in a new tab
Previous
Call Dock / Usage
Next
Call Dock / Accessibility
On this page
Exports
CallDock props
Part props
CallDockError props
Removed
Props
Storybook