animui
ComponentsBlocksDocsPackageTry the demo
Introduction
Installation
Theming
Motion
AI guide
Changelog
Metrics dashboard
KPI drilldown
Metric explorer
Revenue explorer
MRR waterfall
Cohort retention
Usage forecast
Journey flow
Choropleth explorer
Connected scatter
Market terminal
Budget variance
Small multiples
Line replay
AI chat
AI composer
Agent run
AI side panel
SidebarPro4
Page header
Command palette
Notification center
Empty states
Search resultsPro
Login and sign up5
OTP input
Multi-step formPro
Settings page
Settings command
Security settings
Billing overview
Usage billing
Cancel flow
Team members
Invite people
Team directory
Roles and permissions
API keys
Webhooks
Integrations
Environment variables
Plan comparison
Pricing calculatorPro
Usage pricingPro
Cart drawerPro
Checkout summaryPro
Invoice studio
Wallet card
Product listing
Product detail
Inbox triage
Support conversation
Support widget
Help centerNew
File upload
Media playerPro
Week calendar
Availability picker
Project board
Release readiness
Kanban boardNew
Hero section
Hero signupPro
Scroll storyPro
Spotlight gridPro
Feature bentoPro
Comparison table
Logo marquee
Studio perspectivesPro
Stats band
Changelog feed
FAQ section
Contact section
Team showcasePro
Blog grid
Site header
Site footer
CTA section
Newsletter signup
Activity terrain
Revenue globe
Customer galaxy
Semantic zoom
Layout morph
What’s new8 new
BlocksMetric explorer

Metric explorerPro

KPI cards that open into a scrubbable chart and morph between metrics and ranges.

Live block · sample data

Growth metrics

Parcelwise · updated Sep 22, 2026 at 09:00 UTC

When to use

  • The top of a SaaS analytics or finance page with KPI cards that open into a chart.
  • Dashboards where people move between a few metrics and date ranges.

When not to use

  • Use stat-card or metric-card for static KPI tiles.
  • Use revenue-explorer for a revenue breakdown with a range brush.
  • Use metrics-dashboard for a full dashboard layout.

Installation

Install animui once, then import any component or block from its typed package entry.

animui · 250 components and blocks

React 19 and React DOM 19 are required. The package includes Free and Pro entries, styles and TypeScript declarations.

npm install https://animui.stracture.net/__local/package.tgz

Load the stylesheet once at your app root, then use the typed component import:

import 'animui/styles.css';
import { MetricExplorer } from 'animui/metric-explorer';

Read the Code tab for the implementation files and the API reference below for required props.

Download animui 0.3.0 · Agent guide

Usage

Use this at the top of a SaaS analytics or finance page. Replace the seeded series in metric-data.ts with daily values from your warehouse or metrics API; the range and comparison math stay the same.

example.tsx
1import { MetricExplorer } from "animui/metric-explorer";2 3export default function AnalyticsPage() {4  return (5    <main>6      <MetricExplorer />7    </main>8  );9}
Built fromSegmented controlAnimated counter

API reference

MetricExplorer

A row of KPI cards that morph open into a scrubbable chart with metric tabs and a range switch. Takes no props; series and ranges are sample data in metric-data.ts.

No props.

Keyboard interactions

Arrow leftorArrow right
On the metric tabs, switches metric; on the chart, steps back or forward one interval.
HomeorEnd
Jumps to the first or last metric tab, or the first or last point in range.
Escape
Clears the scrubbed point, then closes the chart back to its card.

Accessibility

  • Each card is a button whose label reads the value, change and range.
  • The open chart uses a tablist and tabpanel, and the scrubber is a role="slider" with a dated aria-valuetext.
  • The close button advertises Escape with aria-keyshortcuts, and a polite live region announces changes.

Motion

  • A card's surface morphs into the chart panel with a shared layout transition and back on close.
  • The line morphs between metrics and ranges, and the tab highlight slides with the selection.
  • Reduced motion replaces the morph and slides with instant changes.

Responsive behavior

  • Four cards per row drop to two below a 760px container.
  • Below 640px tab values hide and the readout stacks; below 440px card padding and values shrink.
  • The chart uses touch-action pan-y, so touch scrubbing does not block page scroll.

Performance

  • Opening a card morphs one shared surface with a layoutId, and ResizeObservers fit the chart and tab indicator.
  • SVG charts over daily series; aggregate long histories before passing them in.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Use at the top of a SaaS analytics or finance page.
  • Replace the seeded series in metric-data.ts with daily values from your warehouse; range and comparison math stay the same.
/components/blocks/metric-explorer/markdown

The full library index for assistants is at /llms.txt.

Related

Metric cardComponentA compact summary for a number that needs context.SparklineComponentShow a compact trend beside a value.Revenue explorerProBlockA SaaS revenue chart you zoom with a brush while paths, axes and figures glide to the range.Segmented controlComponentSwitch between a small set of related views.
PreviousRoles and permissionsNextActivity terrain
animui · 84 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown