Skip to content
Browse blocks

A four-cell bento for infrastructure products: a traffic chart you can sweep, a region map you can click, a config diff you can apply and a deploy trace you can drag.

Used forDeveloper infrastructure & cloud platformsAI workflow & agent platformsObservability & analytics homepagesB2B SaaS feature deep-dives

Install with the shadcn CLI

$ npx shadcn@latest add @hairline-pro/aperture-bento

A premium block, included with All-Access (see what’s inside). Add the @hairline-pro registry once, with the token from your account settings. Set it up

Templates

Need the whole page?

63 Next.js landing pages, each designed from scratch. Try any of them live; one is $39, all of them $159, and 8 are free.

All 63 templates

Where it’s used

  • Developer infrastructure & cloud platforms

    Shows real-time request distribution, edge routing latency, config diffs and deploy traces in one cohesive section.

  • AI workflow & agent platforms

    Swap in model throughput, regional routing, guardrail policy diffs and multi-step execution traces.

  • Observability & analytics homepages

    Lets visitors sweep across live hairline data windows and scrub trace timelines directly on the marketing page.

  • B2B SaaS feature deep-dives

    Replaces generic icon-grid feature cards with four interactive product stories driven by one preset switcher.

What it handles for you

Building a bento section where every cell is genuinely interactive—custom Canvas 2D graphics, spring-driven scrubbing, live theme token syncing and container-query mobile stacking—normally takes multiple charting and animation libraries.

Instead of wiring upstatic bento card gridcharting library for sparklinesanimated network diagraminteractive timeline scrubber
  1. 48-column hairline telemetry field

    Draws stacked hairline dashes in Canvas 2D with a spring-driven optical lens, spatial falloff and cooling brightness trails.

  2. Interactive edge routing mesh

    Clicking or arrowing to any region hub sends a spring arrival pulse, reroutes curved packet arcs and rolls latency with NumberRoll.

  3. Inline atomic policy diff gate

    Applies or reverts threshold diffs in place with TextMorph button feedback and live active rule counts.

  4. Draggable spring pipeline scrubber

    Scrubbing the hairline playhead (with rubber-band edges and keyboard slider support) updates stage details and elapsed ms live.

  5. Shared workload preset choreography

    Switching presets glides the solid grey tab thumb and updates the telemetry wave, regional latencies and trace duration together.

  6. Theme tokens, off-screen sleep and reduced motion

    Re-reads shadcn chart and surface tokens automatically on theme switches, sleeps off screen and freezes animations cleanly under reduced motion.

Overview

Most bento grids are static rounded tiles with stock icons and decorative border glows. Aperture bento seats four living product machines inside one hairline-divided frame, all driven by a shared workload preset switcher. The lit hero cell draws 48 upright hairline-mark columns in Canvas 2D with a spring optical lens and cooling brightness trails; the routing mesh lets visitors click any regional hub to reroute live packet arcs and roll p95 latency; the policy gate applies or reverts real config diffs in place; and the build-to-edge timeline scrubs smoothly under a draggable spring playhead.

States

preset switch
Glides the solid grey preset thumb in 360ms, morphs the 48 hairline columns toward the new wave and rolls throughput and regional latency figures.
telemetry lens
Sweeping the pointer across the lit hero canvas steers a spring lens rule, illuminating nearby columns and cooling passed bars cleanly.
region reroute
Selecting any edge hub fires an arrival ring pulse, redirects animated packet arcs toward that hub and rolls p95 latency.
policy toggle
Clicking Apply policy crosses out removed lines, ticks added rules, increments the active rule counter and morphs the button to Revert policy.
pipeline scrub
Dragging the hairline playhead (or using Arrow keys) glides with spring inertia, rubber-bands at both edges and syncs the active stage readout.
reduced motion
Renders crisp finished Canvas 2D frames without continuous loops and switches presets, regions and playhead positions immediately in place.

Usage

usage.tsx
import { ApertureBento } from "@/components/aperture-bento";<ApertureBento  eyebrow="Platform architecture"  heading="Four systems built to stay fast together."/>

Depends on lucide-react, installed for you by the CLI along with the keyframes it needs.

Works with

Drop-in feature bento on a product homepage

Pass your own presets, regional hubs, policy lines and pipeline stages to tailor ApertureBento to your product while keeping every interaction wired.

example.tsx
import { ApertureBento } from "@/components/aperture-bento";export function ArchitectureSection() {  return (    <section className="mx-auto max-w-[1280px] px-4 py-16">      <ApertureBento        eyebrow="Edge runtime"        heading="Built for global traffic without regional config."        subheading="Inspect throughput windows, reroute regions, test a policy diff and scrub a full deploy below."        diffFile="kestrel-policy.toml"      />    </section>  );}

Props

eyebrow= "Platform architecture"
string
Plain sentence-case section label above the heading.
heading
string
Primary display headline for the bento section.
subheading
string
Supporting sentence explaining what visitors can interact with.
presets
AperturePreset[]
Workload scenarios shown in the top-right switcher; each supplies a telemetry wave, regional latencies and trace duration.
seriesLabels
[string, string, string, string]
Legend labels matching the four shadcn chart series tokens.
regions
ApertureRegion[]
Clickable regional hubs rendered on the Canvas 2D routing mesh.
diffFile= "edge-policy.toml"
string
Filename shown in the header of the policy diff cell.
diffLines
ApertureDiffLine[]
Context, removed and added config lines toggled by the Apply / Revert button.
tracks
ApertureTrackStage[]
Parallel pipeline tracks inspected by the draggable spring playhead.
accent= "var(--primary)"
string
CSS colour or token tinting the lit hero cell and active routing hub.

Accessibility and motion

  • Pure Canvas 2D and spring physics from ui-interaction-motion.ts with zero charting or animation library dependencies.
  • Uses container queries (`@container`) inside a `data-natural-width` strut so it adapts cleanly to any column width from 320px phones to wide desktop canvases.
  • All interactive controls expose semantic ARIA roles (`tablist`, `radiogroup`, `slider`) with full keyboard support; decorative canvases are marked `aria-hidden`.
  • Automatically suspends Canvas 2D animation frames when scrolled off screen (`IntersectionObserver`) or hidden (`visibilitychange`).

Requirements

React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

The CLI also installs Number roll, Text morph.

Source

Part of All-Access

Aperture bento is 1,466 lines of finished work.

  • components/aperture-bento.tsx757 lines
  • components/aperture-bento-canvas.ts507 lines
  • components/ui-interaction-motion.ts202 lines

Installs with npx shadcn add @hairline-pro/aperture-bento, in your theme, light and dark.

$159once, for everything

The 55 paid templates alone are $2,145 one by one.

  • Aperture bento: the source and the CLI install
  • Every premium block: 8 today, and each one we add
  • All 63 Next.js templates, with live demos
  • Commercial license for unlimited client sites
Get All-Access

7 more templates and it goes to $169. Full refund within 14 days, until your first download.

Already have All-Access? Sign in to see the source