High Command
LibraryTemplatesGet startedPricing
Get Pro · $79

Guide

Browse everythingGetting startedThemingYour data

Site

HomeTemplatesPricingChangelog

Templates 4

Command centerProFleetProCustomer trackingProField servicePro

Ops and shell 9

App shellProOps modelProAttention queueProMorning briefProShift handoverProLane panelProOwn-fleet partsProAgent action barProCustomizable dashboardPro

Map 17

PMTiles basemapPMTiles routeTrip hologramProBasemap styleMap geometryMapLand texture and dot lensProException heatmap and risk contoursProLane arcsProShipment layerOwn fleet layerProFleet map layersCurated place labels and sitesRoute traceEdge chipsProMap key, filters and paddingMap kitPro

Time and trips 11

Time and trip modelsEvent fieldProIn-transit rowsProImpact lineProActivity barProReplay clockTime controlPlayback overlayProTrip timetableProStage rowWeek cursorPro

Figures, charts and tables 14

Sourced valueKey-figure tileFigure groupPart barBand sparklineKPI stripProChart kitPop barWaterfall cascadeMargin chartsPro13-week cash ladderProWork tableProField railProHorizon gridPro

Zones and dispatch 10

Zones modelDispatch modelProGeofence layerGeofence eventsGeofence drawProService ringsDensity heatmapJob queueProAssign dialogProStop listPro

Design system 3

ThemeShared helpersUI primitives

Routing 3

Offline road routerAustin road graphAustin areas

Libraries 2

Fleet coreRoute core
High Command

Map, fleet and ops-console components for React. Built in-house, copied into your app with the shadcn CLI.

Product

  • Library
  • Templates
  • Pricing
  • Changelog

Build

  • Get started
  • Accessibility
  • Trip hologram

Templates

  • Command center
  • Fleet
  • Field service

New pieces by email. A short note when a release lands.

One email per release. Unsubscribe any time.

© 2026 High Command Pro licenseTermsPrivacyRefundsMap data © OpenStreetMap contributors · OpenFreeMap
Library/Time and trips

Time control

The clock pill: live, paused or reconnecting, the clock in the viewer's zone running between updates, speed 1x/60x/600x and play or pause, and Replay with its own speeds, playhead and Back to live. Props-driven; optional provider for a shell that owns time.

Free · MITComponent@highcommand/time-control3 files
See it in context
Simulated time LIVE15:00:00 CSTNov 6
Customize

Installation

$ npx shadcn@latest add @highcommand/time-control

Copies the source into your project and pulls in what it needs (4 other items). First time? Add the registry to components.json.

Props

<TimeControl />

Time: one compact pill with the state, the clock in the viewer's zone, and (where the clock may be run) the speed and Play or Pause; then Replay, which plays the shift back (it changes nothing).

PropTypeDefault
nowrequiredstring | null—

the clock's time at its last update (ISO); null before the first

speedrequirednumber—

simulated seconds per real second

pausedrequiredboolean—

True while the clock is paused; the pill shows Play, and the live badge reads Paused.

streamStreamState'live'

the event stream's connection, for the Live badge

speedsreadonly number[]SPEEDS

Speeds offered, in simulated seconds per real second (default 1, 60 and 600).

onSpeed(x: number) => void—

Fires with the chosen speed; without it (or onPlayPause) the pill is read-only.

onPlayPause() => void—

Fires when Play or Pause is pressed; without it (or onSpeed) the pill is read-only.

lockedstring | nullnull

why this viewer may not run the clock ("Admin role required"): the pill shows state and time only, the reason in its tooltip

warmingbooleanfalse

still replaying history on start-up

errorstring | nullnull

the last control failed: its reason, in place of the badge

busybooleanfalse

a control request is in flight

sourcestring—

where the events come from, for the badge's tooltip

replayReplayDrive | null—

The replay's state and actions; adds the Replay button and takes over the pill while it plays. Null or absent: no replay.

Also in this item 2

<LiveBadge />4 propsLive state of the event stream and the clock; sits with the clock, whose controls show the speed.
PropTypeDefault
streamrequiredStreamState—

The event stream's connection: live, reconnecting or offline.

pausedrequiredboolean—

the clock is paused (a replay, a held simulation)

sourcestring—

where the events come from, added to the tooltip ("fixture data")

classNamestring—

Extra class names for the badge.

<ReplayProvider />1 propsContext for an app shell that owns time: holds the replay a page publishes so the top bar can draw it.
PropTypeDefault
childrenrequiredReactNode—

The shell the replay context wraps.

Helpers6 exported functions
  • localClock(iso: string): string

    "09:12:23 CDT": the simulated time in the viewer's zone, to the second.

  • localDate(iso: string): string

    "Oct 1": the simulated date in the viewer's zone.

  • useReplayAt(view: ReplayView | null): number | null

    The replayed moment, read from the live actions four times a second while the replay plays (the published one otherwise).

  • usePublishReplay(ctl: ReviewControl | null, warming: boolean, running: boolean): void

    The command center's side: its replay control (null while there is nothing to replay), whether its data is still warming, and whether the simulator runs.

  • useReplayView(): View

    The published replay view (state, warming, whether the simulator runs); idle values without a ReplayProvider.

  • useReplayActions(): MutableRefObject<ReviewControl | null>

    A ref to the page's live replay control, null while nothing is published to replay.

Dependencies

npm
lucide-react
Builds on
ThemeUI primitivesShared helpersTime and trip models
Pro pieces built on this
Command center ProFleet Pro

Install this free piece now; the Pro pieces drop in on top of it, in the same app. Pro is $79 once.

PreviousReplay clockNext Playback overlay

On this page

PreviewInstallationPropsDependencies