Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components136

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeNewProLens rangeNewPro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

SunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmer

Blocks122

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardNewProEnvironment variablesProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupPro

Scroll storyProSpotlight gridProFeature bentoProComparison table

Logo marqueeStudio perspectivesProStats band

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog grid

Site headerSite footerCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarNewPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components106

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProTypewriter terminalPro

Stretch refreshProMorph loaderProSkeleton morphProBlack holeProCharge sessionPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelPro

Dot gridProImage trailProGravity wellProInk fluidProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
What’s new4 new
BlocksKPI drilldown

KPI drilldown

Pro

KPI cards that expand into a full detail chart with period comparison and a breakdown table, then fold back.

Live block · sample data

When to use

  • An analytics or finance overview where each number deserves a closer look.
  • Executive dashboards that compare the current period with the previous one.

When not to use

  • Use metric-explorer to compare many metrics on one chart.
  • Use metrics-dashboard for a static summary without drill down.
  • Avoid it for real time monitoring where values change every second.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Use this as the overview of an analytics or finance dashboard. Load each metric's series and breakdowns from your warehouse and keep the range in your URL.

example.tsx
1import { KpiDrilldown } from "@/components/arc/blocks/kpi-drilldown/kpi-drilldown";2 3export function Overview({ metrics }: { metrics: Kpi[] }) {4  const [metric, setMetric] = useQueryState("metric");5  return <KpiDrilldown kpis={metrics} selected={metric} onSelectedChange={setMetric} />;6}
Built fromAnimated counterButton

API reference

KpiDrilldown

A KPI overview where each card expands into a full detail view on one spring: the label and value stay put while the chart, period comparison, and breakdown table are revealed around them. Ranges morph every sparkline in place.

PropTypeDefaultDescription
kpisKpi[]kpisMetrics: id, label, format, kind (total or rate), lowerIsBetter, daily series, breakdowns by dimension, and a description.
dimensions{ value: string; label: string }[]breakdownDimensionsBreakdown dimensions; values match keys in each metric's breakdowns.
endstring"2026-09-24"ISO date of the last value in every series.
defaultRange"7" | "30" | "90""30"Initial range in days.
selectedstring | null–Controlled open metric id, or null for the grid.
onSelectedChange(id: string | null) => void–Called when a metric opens or closes. Use it to keep the selection in the URL.
titlestring"Overview"Heading.
classNamestring–Class on the root.

Keyboard interactions

EnterorSpace on a card
Opens the metric; focus moves to the close button.
Escape
Folds the detail back into its card and returns focus to it.
Arrow leftorArrow right
Moves the chart cursor one day while the chart has focus.

Accessibility

  • Cards are buttons whose name includes the value and the change.
  • The detail is a labeled region; the grid behind it is hidden from assistive technology while it is open.
  • The chart has a spoken summary and a keyboard cursor; changes pair an arrow and sign with color.
  • Breakdowns are real tables with row headers.

Motion

  • The card grows into the detail on one spring, and the detail folds back into the same card.
  • Every range is resampled to the same number of points, so sparklines and the detail line morph instead of redrawing.
  • Values roll digit by digit when the range changes.
  • The previous period line fades in and out with Compare; breakdown rows crossfade and their share bars fill with a small stagger.
  • Reduced motion jumps between grid and detail and keeps short fades.

Responsive behavior

  • Three columns above 760px, two down to 520px, then one.
  • Below 520px the share column hides and Compare becomes an icon button.
  • The detail scrolls inside its panel when it is taller than the grid.

Performance

  • Sparklines use a fixed 100 by 32 viewBox with non scaling strokes, so resizing never re measures them.
  • The detail chart measures its width once per resize and animates only path data.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Give each metric at least twice the longest range of daily values so the comparison period exists.
  • Use kind rate for percentages so changes read in points, and set lowerIsBetter for churn or latency.
  • Keep selected in the URL with onSelectedChange so a detail can be shared.
  • Six metrics fit best; more belong in metric-explorer.
/components/blocks/kpi-drilldown/markdown

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

Related

Metrics dashboardProBlockA complete product analytics app on the screen shell, with sites, saved views, a date range and filters. It has KPI tabs over one chart you can drag to zoom, breakdowns by page, source, location and device, goals, sortable tables, and a detail panel for any row.Metric explorerProBlockKPI cards that open into a scrubbable chart and morph between metrics and ranges.Revenue explorerProBlockA SaaS revenue chart you zoom with a brush while paths, axes and figures glide to the range.MRR waterfallProBlockAn MRR bridge whose floating bars morph by period and open the accounts behind each move.Bar chartComponentCompare one measure across days and scrub any bar for its value.
PreviousImport wizardNextBlog grid
Arc · 122 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

Overview