Skip to content

Router Tabs Introduction

This guide is the landing page for the router-tabs documentation set in Zova within the Cabloy monorepo.

Use it to understand what the router-tabs mechanism is, how it fits into the broader routed-host layer, which questions each companion document answers, and what order to read them in.

What router tabs are

Router tabs are one routed-host strategy built on top of the shared Zova router-view host layer.

Router tabs provide a workbench-style navigation model for frontend layouts that need more than a simple route-transition model.

In the current Cabloy Basic source, the mechanism supports:

  • stable workspace-level grouping
  • task-level page-instance switching inside a workspace
  • keep-alive integration for routed work items
  • optional cache restoration for workbench state
  • more than one layout presentation on top of the same shared model

That means router tabs are not only a visual tab bar. They are a route-grouping and workbench-state mechanism.

Start here when you need to answer these questions

What business problem does this solve?

Read Router Tabs Overview.

This document explains:

  • why admin-style applications need more than a simple menu transition model
  • why workspace identity and task identity should stay separate
  • how the mechanism supports parallel work and workbench continuity

How does the mechanism work in code?

Read Router Tabs Mechanism.

If your real question is whether this should be modeled as tabs at all, compare it first with Router Tabs vs Stack, then read Router Stack Guide if the stack branch is a better fit.

This document explains:

  • the shared state model
  • tabKey and componentKey
  • page metadata, keep-alive, cache, and pruning behavior
  • the relationship between the shared model and concrete layouts

For authoring-focused page metadata usage, continue with Page Meta Guide.

How should I author route meta for this?

Read Router Tabs Route Meta Cookbook.

This document explains:

  • practical recipes for tabKey
  • when to use componentKeyMode
  • when to define explicit componentKey
  • when to disable keep-alive
  • common authoring mistakes to avoid

How do Admin and Web layouts differ?

Read Router Tabs Admin and Web Comparison.

This document explains:

  • what both layouts share
  • how Admin exposes the two-level model directly
  • how Web reuses the same model with a different shell style
  • why layout-specific UI should not be confused with shared mechanism semantics

Router ecosystem map

Use this compact map when you want the shortest accurate document order for Zova routing and routed-shell behavior.

If your question is mainly aboutRead this nextThen continue with
route records, shell/layout choice, and the public route surfacePage Route GuideRoute Alias Guide, Navigation Guards Guide
route registration, startup, lazy loading, and controller route-state injectionZova Router Under the HoodRouter View Hosts Guide
why one routed page behaves like an empty shell while another behaves like a workbench hostRouter View Hosts Guidethis page, then Router Tabs Mechanism
the business meaning of router tabsRouter Tabs OverviewRouter Tabs Admin and Web Comparison
how the tabs model works in codeRouter Tabs MechanismPage Meta Guide, Router Tabs Layout Integration, then Router Tabs Route Meta Cookbook
how the current Basic layouts turn the shared tabs model into a visible shellRouter Tabs Layout IntegrationRouter Tabs Admin and Web Comparison
how to intentionally author tabKey, componentKey, and keepAliveRouter Tabs Route Meta CookbookZova Source Reading Map
which files to read first for a targeted source diveZova Source Reading Mapthe branch that matches your current question

Product or architecture perspective

Recommended order:

  1. Router Tabs Overview
  2. Router Tabs Admin and Web Comparison
  3. Router Tabs Mechanism

Frontend implementation perspective

Recommended order:

  1. Router Tabs Mechanism
  2. Router Tabs Layout Integration
  3. Router Tabs Route Meta Cookbook
  4. Router Tabs Admin and Web Comparison

Maintenance and refactor perspective

Recommended order:

  1. Router Tabs Mechanism
  2. Router Tabs Admin and Web Comparison
  3. .docs-internal/architecture/router-tabs-design-boundaries.md

Scope boundary

The public router-tabs docs explain the shared frontend mechanism and how to use it.

For internal design boundaries, maintenance invariants, and refactor safety rules, see:

  • .docs-internal/architecture/router-tabs-design-boundaries.md

See also

Released under the MIT License.