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

React component library

Interfaces in motion, ready to install.

338 accessible React components built with Tailwind CSS and Motion. Every tile below is running. Open one, then copy the source, use the shadcn CLI, or hand the name to your coding agent.

Browse components
npx shadcn@latest add @viewport/dock
  • 57 free components
  • MIT licensed
  • No runtime lock-in
  • Built on and works with

  • React 19
  • Next.js
  • Tailwind CSS v4
  • Radix UI
  • TypeScript
  • shadcn/ui
  • Vite
  • React Router
  • Remix
  • Astro
Components
338
Free and MIT licensed
57
Categories
19
Blocks and templates
135

Craft

The details you would add if you had the time.

Each of these is a decision made once, in the component, so you do not have to make it again in every project.

  • Designed at 360px first

    Dialogs become sheets, tabs scroll, grids collapse. Every preview on this site resizes, so you can check a component at phone width before you install it.

  • linearflat
    ease-in-outgeneric
    spring(380, 26)what ships

    Tuned, not default

    Springs, easings and delays are chosen per interaction. Nothing ships with a library default curve.

  • Drag across this tile

    Pointer events
    0
    React renders
    0

    Fast where it counts

    Transforms and opacity only. Pointer effects write CSS variables instead of re-rendering React.

    • your-app
    • components
    • viewport
    • dock.tsx+
    • globe.tsx+
    • prompt-input.tsx+
    • package.jsonno viewport package

    Your code, not a dependency

    Components land in your repo as plain files. Read them, change them, delete what you don't need.

  • Add the Truffle dock to the sidebar.

    shadcn add @viewport/dock

    Installed components/viewport/dock.tsx and wired it into the sidebar.

    • Claude Code
    • Cursor
    • Codex
    • Devin

    Agent ready

    A shadcn-compatible registry and an llms.txt, so coding agents can install any component by name.

Catalog

19 categories, from text effects to full widgets.

Motion primitives, AI interfaces, charts, forms, commerce and media. Pick a category to see what is inside.

AI39 components · 1 free

View all in AI
  • Agent RelayProNew

    Route a request between specialists and follow the signal through a branching circuit.

  • Context BudgetProNew

    Fit sources into a model window with a segmented meter and a live token balance.

  • Citation DossierProNew

    Open a numbered citation beneath an answer to inspect its highlighted excerpt and attribution.

  • Tool ReceiptProNew

    Unfold an itemized tool invocation with its arguments, return value and execution time.

Install

Three ways in. One plain file out.

However a component arrives, it ends up as a .tsx file in your repository that you can read, change and delete.

  1. 01 / 03

    Install with the CLI

    One command writes the component and its dependencies into your project. Works with pnpm, npm, yarn and bun.

    terminal

    $ npx shadcn@latest add @viewport/dock

    ✔ Checking registry.

    ✔ Installing dependencies.

    ✔ Created components/viewport/dock.tsx

    Installation guide
  2. 02 / 03

    Copy the source

    Every component page shows the full file. Paste it in, and it is yours: no wrapper package, no version to chase.

    components/viewport/dock.tsx
    "use client";
    
    import { createContext, useContext, useRef } from "react";
    import {
      motion,
      useMotionValue,
      useReducedMotion,
      useSpring,
      useTransform,
    Browse components
  3. 03 / 03

    Hand it to your agent

    Each page has a ready prompt, and the registry is described in llms.txt so agents can find components by name.

    prompt

    Add the Truffle UI “Dock” component to this project. Run shadcn add @viewport/dock and keep its accessibility and reduced-motion handling intact.

    Use with AI agents

Blocks and templates

Start from a page, not a blank file.

128 page sections and 7 complete pages, assembled from the same components and responsive from phone to desktop.

SaaS DashboardBlockPro

A complete SaaS admin: collapsible sidebar with workspace switcher, mobile drawer, ⌘K, notifications, revenue overview with range picker, sortable customers table with bulk actions and drill-down detail pages, invoices with error and retry, team invites, API keys and settings.

LaunchTemplatePro

A complete SaaS landing page, from sticky nav to footer, built from five Truffle blocks.

Kanban BoardBlockPro

A sprint board with drag and drop, a full keyboard path (Space to pick up, arrows to move), WIP limits that refuse the drop and shake the column, inline card creation and spring reordering.

Accessibility

Accessible by construction.

Radix primitives underneath, real roles and labels, visible focus, and a reduced-motion path for every animation. Try the components with your keyboard.

Role
button in a heading, region
Keys
↑↓HomeEndEnterSpace
Motion
Full motion

From the component’s accessibility notes

  • Built on Radix Accordion: arrow keys, Home and End.
  • Triggers sit inside headings and announce expanded state.
  • Respects prefers-reduced-motion.

Pricing

Free to start. Pay once for the rest.

57 components are free forever. Pro is $99 a year or $199 once, with every future release included.

  • Free

    For side projects and for trying the library.

    $0

    free forever

    Browse components
    • Every free component, forever
    • shadcn CLI and copy-paste install
    • Works with Claude Code, Cursor, Codex and any agent
    • MIT licensed source you own
    • Community support
  • Pro Yearly

    A year of every Pro component, block and template.

    $99Regular price $149

    per year

    Get Pro Yearly
    • Everything in Free
    • All Pro components and blocks
    • All templates and landing pages
    • Private registry token for the shadcn CLI
    • Updates while your plan is active
    • Email support, 48-hour turnaround
    • Cancel anytime, keep what you shipped
  • Pro Lifetime

    Most popular

    Pay once. Everything we ship, for good.

    $199Regular price $299

    one-time

    Get lifetime access
    • Everything in Pro Yearly
    • Lifetime updates and every future release
    • Unlimited personal and commercial projects
    • Agent kit: prompts, skills and recipes
    • Private Discord community
    • Priority support, 24-hour turnaround
    • One-time payment, no subscription
  • Team Lifetime

    For studios and product teams of up to 10 people.

    $599Regular price $799

    one-time, 10 seats

    Get Team
    • Everything in Pro Lifetime
    • 10 seats with invite and revoke
    • Use on unlimited client projects
    • Centralized billing and invoices
    • Shared registry token rotation
    • Priority support for the whole team

14-day money-back guarantee. Secure checkout by Stripe.

FAQ

Questions, answered.

Something else on your mind? Write to hello@viewport.so and a person will reply.

Truffle Pro

Pay once. Get everything we ship.

Every Pro component, a private registry token for the CLI and your agents, and lifetime updates. From $99 a year or $199 once.