Skip to content
caliper ui pro docs

Control center

Toggles and sliders grouped like a phone's control centre.

Pro

Meeting room 2 · display

Quick settings for the shared screen at Forma Studio

When to use

  • Quick settings.

When not to use

  • Settings need explanation.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/control-center

Adds its 2 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.

API reference

ControlCenter

3 props
PropTypeDefault
label *string—
children *ReactNode—
classNamestring—

ControlToggle

6 props
PropTypeDefaultDescription
label *string—
icon *ReactNode—
checked *boolean—
onCheckedChange *(checked: boolean) => void—
statusstring—One short word under the name, such as the network joined.
classNamestring—

ControlSlider

9 props
PropTypeDefault
label *string—
icon *ReactNode—
value *number—
onValueChange *(value: number) => void—
minnumber0
maxnumber100
stepnumber1
unitstring"%"
classNamestring—

ControlGroup

6 props
PropTypeDefault
label *string—
icon *ReactNode—
summarystring—
defaultOpenbooleanfalse
children *ReactNode—
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes switch semantics, with aria-label, aria-checked, aria-hidden, aria-valuetext, aria-expanded and aria-controls kept in step with state.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/control-center.md

The index of every part is at /llms.txt.

More in Stacks