Skip to content
caliper ui docs

Pro

App frame

The shell every screen sits in: workspace, navigation with counts, the plan's seats and search; a bottom tab bar under 760px.

Pro
pnpm dlx shadcn@latest add @caliper/app-frame
Today

Today

Your page goes here. Choose a place in the sidebar, or in the tab bar under 760px.

Content
Content
Content
Content
State
Installs components/ui/app-frame.tsxDepends on @radix-ui/react-slot, lucide-reactMotion shared motion tokens

When to use

Use it for

  • A product with five to nine top-level places.
  • You want screens to share one frame and one search.

Skip it when

  • Marketing pages; use the blocks.
  • Two or three places; a top bar with tabs is lighter.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/app-frame

Adds its 6 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

Usage

Import it from your copy of the source. The example behind the preview comes with the source. It is built from AppFrame, ScreenHeader, ScreenPanel and ScreenStatus.

example.tsx
import { AppFrame, ScreenHeader, ScreenPanel, ScreenStatus } from "@/components/ui/app-frame"

The worked example comes with Pro

The 82-line example behind the preview opens here, ready to copy.

  • 626 Pro parts, blocks and page templates, all with source
  • $149 once, with lifetime updates. No renewal
  • A full refund within 14 days if it is not for you
Checking your licence…

API reference

AppFrame

component
PropTypeDefaultDescription
workspace *{ name: string; mark?: ReactNode; }—
workspaceMenuReactNode—A control in place of the workspace name, such as a workspace switcher.
nav *readonly AppNavItem[]—
location *string—The current place, e.g. "Billing", shown after the workspace.
plan{ name: string; used: number; limit: number; note?: string | undefined; }—
userReactNode—
searchLabelstring"Search or jump to…"
onSearch(() => void)—Opens your command palette. The ⌘K shortcut calls it too.
phoneTabsnumber4How many items the phone tab bar shows before More.
children *ReactNode—
classNamestring—

ScreenHeader

component
PropTypeDefault
title *ReactNode—
descriptionReactNode—
actionsReactNode—
classNamestring—

ScreenPanel

component

Also accepts the native props of its root element and a ref.

PropTypeDefault
titleReactNode—
asideReactNode—
children *ReactNode—
classNamestring—

ScreenStatus

component
PropTypeDefaultDescription
stateScreenState"ready"
layoutScreenLayout"table"
title *ReactNode—The screen's title, kept in every state so the page never loses its name.
descriptionReactNode—
messagesScreenMessages—
actionReactNode—What to do from the empty state, such as "Import contacts".
onRetry(() => void)—
classNamestring—
children *ReactNode—

Accessibility

It exposes meter, status and alert semantics, with aria-hidden, aria-label, aria-valuemin, aria-valuemax, aria-valuenow and aria-valuetext kept in step with state. Changes that matter are announced through a live region.

KeyBehaviour
EscapeCloses or cancels, then returns focus to where it came from.

Motion

Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.

All Workspace chrome examples