Get started
Embedded Studio

Studio components

Studio components

@mountaya/studio-react publishes every list, form, panel and dialog the editor is made of. Mount one on its own to lay out the studio your way.

Hover a row and that leg lights up on the route. The lists and the map share one store, with no wiring between them.

Which component for which job

JobComponentImport from
Edit the segment chainItinerarySegmentList, or SegmentList with rows you pass@mountaya/studio-react
List and edit waypointsItineraryWaypointList, or WaypointList@mountaya/studio-react
Create or rename an itineraryItineraryForm@mountaya/studio-react
Publish an itineraryItinerarySubHeader, PublicationNotice@mountaya/studio-react
Act on an itinerary in a listItineraryActionsMenu@mountaya/studio-react
Show the elevation profileItineraryProfilePanel@mountaya/studio-react
Generate a route from constraintsSuggestForm@mountaya/studio-react
Import a route fileImportItineraryContent@mountaya/studio-react/import
Draw and publish a zoneZoneForm, ZoneSubHeader, ZoneActionsMenu@mountaya/studio-react
Put controls over the mapStudioControls@mountaya/studio-react
Show who else is editingPresenceRoster, PeerLockTooltip@mountaya/studio-react
Run the AI co-pilotCopilotPanel@mountaya/studio-react/copilot
Export a videoVideoExportWizard@mountaya/studio-react/video
Build a formPrivacyControl, StudioToggleRow, LanguageSelect, AllowlistField@mountaya/studio-react
Open a dialogAppModal, ModalFooter, ConfirmModal, FullscreenModal@mountaya/studio-react
Build a side panelSidenavContentHeader, SidenavContentBody, SidenavFormActions@mountaya/studio-react
Show loading, empty or failedListSkeleton, EmptyState, ErrorAlert, StudioSectionBoundary@mountaya/studio-react

Each component's props are on the Props tab, and its class names on the Styling tab.

Lay out your own studio

Mount the host, register your own map with it, and place the components you want around that map.

import { EditorMapView } from "@mountaya/elements-react/editor";
import {
  ItinerarySegmentList,
  ItinerarySubHeader,
  ItineraryWaypointList,
  MountayaStudioHost,
  StudioSectionBoundary,
  useStudioHostRegistry,
} from "@mountaya/studio-react";

const StudioMap = () => {
  const { onClientDestroy, onClientReady } = useStudioHostRegistry();

  return (
    <EditorMapView client={mountaya} onClientDestroy={onClientDestroy} onClientReady={onClientReady} />
  );
};

export const OurStudio = () => (
  <MountayaStudioHost client={mountaya} itineraryId={itineraryId}>
    <StudioMap />
    <aside>
      <StudioSectionBoundary>
        <ItinerarySubHeader />
        <ItinerarySegmentList />
        <ItineraryWaypointList />
      </StudioSectionBoundary>
    </aside>
  </MountayaStudioHost>
);

Every map verb now drives your map, and the lists follow the open itinerary.

Build forms and dialogs

The form controls and dialog shells match the studio's look, so a screen of your own looks at home beside the editor.

Every field here is live and nothing is saved: these controls report a change and never store one.

Show loading, empty and failed

The last panel throws for real, so the retry card below it is the one StudioSectionBoundary draws.

Next steps

Last updated