Skip to content
CALIPER UI

Caliper UI

Typed React components on native HTML and Tailwind. React is the only dependency.

pnpm add caliper-ui
npm install caliper-ui
yarn add caliper-ui
bun add caliper-ui

Component preview

Unit

Shown under the field.

64 px
0 px100 px

Arrow keys move. Enter runs the item. Right opens the submenu.

Button geometry
Control height 32 px. Corner radius 4 px. Focus ring 1 px. Four variants: solid, outline, ghost, destructive.
⌘KEsc
SearchCommandCopyCheckClose
TokenValue
Radius4px
Height32px

Open the dialog, then try Tab, Shift+Tab, and Escape.

Use the header command menu, or press ⌘K or Ctrl+K.

What you install

Runtime
React
Styling
Tailwind CSS
Helper
cn

Command menu

Open command menu⌘K
Move selection↑↓
Run selected actionEnter
CloseEsc

Components

Choose a name to open it in the preview.

Components and the files they live in.
ComponentBehaviorSource file
Button4 variants, 3 sizesbutton.tsx
InputNative input, invalid stateinput.tsx
TextareaNative textareatextarea.tsx
CheckboxNative checkbox and a visible labelcheckbox.tsx
Radio GroupNative radios in a fieldsetradio-group.tsx
DialogNative dialog, controlled or uncontrolleddialog.tsx
Command PaletteSearch, arrows, Enter, ⌘K or Ctrl+Kcommand-palette.tsx
TableSemantic table, scrolls sidewaystable.tsx
KbdKeyboard key labelskbd.tsx
FieldLabel, hint, and errorfield.tsx
GaugeNative meter and a readoutgauge.tsx
ProgressNative progress barprogress.tsx
SliderNative range inputslider.tsx
SelectNative selectselect.tsx
Dropdown MenuPopover menu, submenu, separatordropdown-menu.tsx
DisclosureNative detailsdisclosure.tsx
IconsInline SVGsicons.tsx

Dialog demo

Press Escape, click outside the dialog, or choose Close.