Skip to content
CALIPER UI

Source-owned React primitives

Caliper UI. Engineered for precision.

Typed React components on native browser APIs and Tailwind CSS. No runtime package beyond React.

pnpm add caliper-ui

Component previewInteractive

Choose a variant

H 32pxR 4pxFOCUS 1px4 VARIANTS

Selected: solid

Implementation

Review the implementation before you copy it.

The preview uses React, native browser APIs, Tailwind CSS, and one local helper.

No component-library runtime

The primitives import React and a local class helper. Dialog behavior uses the browser’s native dialog element.

Runtime requirement
React
Build-time styling
Tailwind CSS
Local helper
cn

Keyboard behavior

Keys supported by the command menu and dialog.

Open command menuK
Move selection
Run selected actionEnter
CloseEsc

Surface colors

Three background colors used by this preview.

Canvas
#09090b
Surface
#121215
Raised
#18181b
Inventory

Components in this library.

Each row is a primitive on this page. Source files are listed for inspection.

Implemented UI primitives and their source files.
ComponentBehaviorSource file
Button4 variants · 3 sizesbutton.tsx
InputNative props · invalid stateinput.tsx
DialogNative <dialog> · controlled or uncontrolleddialog.tsx
Command PaletteSearch · arrows · Enter · ⌘/Ctrl Kcommand-palette.tsx
TableSemantic parts · horizontal overflowtable.tsx
KbdKeyboard key labelskbd.tsx
FieldVisible label · hint · errorfield.tsx
GaugeNative <meter> · numeric readoutgauge.tsx
SliderNative range inputslider.tsx
SelectNative <select>select.tsx
DisclosureNative <details>disclosure.tsx

Command menu

Go to a section or run a preview action.

ESC
Go to
Go to components
Go to implementation
Actions
Open dialog demoEsc

Dialog demo

This example uses the browser’s native dialog element. Press Escape, click the backdrop, or choose Close.