Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Spec Inspector

ProNew

Interactive visual spacing and design-token inspector that highlights nested layers with animated dimension guides.

Installation

pnpm dlx shadcn@latest add @viewport/spec-inspector

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
targets*SpecTarget[]

Inspectable elements with their design token measurements.

—
classNamestring—

Accessibility

  • Each inspectable layer is a focusable button with aria-pressed state.
  • Hover, click, and keyboard focus all move the active inspection frame.
  • Frame gliding snaps directly under reduced motion.