reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
Overview205Core74Shells99Blocks32
SummaryRow
reopt designreopt design

A design system for the AI era

  • Docs
  • Pricing
  • Releases
  • About
  • Contact
  • Terms of Service
  • Privacy Policy

reopt Inc.Business registration no. 217-88-02453contact@reopt.ai

© 2026 reopt Inc. All rights reserved.

SummaryRow

Shell

Standardize a row of StatCard metrics with skeleton cards during loading.

analytics
Related docs
bun add @reopt-ai/opt-ui
Install and import
bash
bun add @reopt-ai/opt-ui
tsx
import { SummaryRow } from "@reopt-ai/opt-ui";

Live preview

Change the width and theme, then interact with the components.

100%

밀도 높은 선택형 요약 행

Selected metric: profiles · 미니 차트는 최근 7개 구간의 추이입니다.

duration / percentage 포맷

Avg duration1.4s↑ +4.2%
Success rate98.2%↑ +1.1%
Failures12↓ -8.0%

Usage guidance

Best practices

  • sparklineData is a number[] ordered from oldest to newest and is displayed with at least two points. Do not compare chart heights across cards with different units.
  • Give stats stable IDs and formatted display values. Set polarity=negative for metrics where a decrease is favorable.
  • For selectable cards, connect onStatClick and selectedStatId to the same query state. Supply empty-list text through labels.

Usage to avoid

  • Do not present an empty result as final while loading, or interpret every upward trend as favorable.

Usage examples

Compare metrics with different meanings

SummaryRow

PropTypeDefaultDescription
variant"cards" | "strip""cards"strip은 컨테이너 너비에 맞춰 배치하는 하나의 지표 그룹
statsRequiredStatCardType[]—통계 카드 배열. 각 항목의 sparklineData로 카드 안에 최근 추이를 함께 그린다
columns2 | 3 | 4 | 5 | 64컬럼 수
onStatClick(stat: StatCardType) => void—카드 클릭 핸들러. 지정 시 카드 자체가 버튼으로 렌더된다
selectedStatIdstring—선택 가능한 행에서 현재 뷰를 이끄는 카드 id
size"sm" | "md""md"카드 밀도. 표 위 헤더 스트립에는 sm
formatValue(stat: StatCardType) => string—값 표시 커스텀 포맷 함수
durationFractionDigitsnumber1duration 포맷 시 소수점 자리수
percentageFractionDigitsnumber1percentage 포맷 시 소수점 자리수
loadingbooleanfalse로딩 시 스켈레톤 표시

컴포넌트 의존 관계

깊이
▲ USED BY (10)▼ USES (2)billing-pageanalytics-dashboardrealtime-dashboarduser-exploreracquisition-analysispath-analysisvisual-diff-managertest-analyticsuser-detailproject-overviewSummaryRowstat-cardskeleton
View test results

테스트 커버리지

2026년 7월 9일4/4 통과
4성공
0실패
4전체
  • 통계 카드를 렌더링한다
  • loading=true일 때 스켈레톤을 표시한다
  • rawValue + format=duration을 자동 포맷한다
  • rawValue + format=percentage를 자동 포맷한다

Blocks that use this component

opt-ui

AcquisitionAnalysis

Blocks

Analyze acquisition across Overview, Channels, and Campaigns tabs with metrics, trends, and tables.

opt-ui

AnalyticsDashboard

Blocks

Build an analytics dashboard with metric cards, line charts, and bar charts.

opt-ui

BillingPage

Blocks

Compose a billing overview from StatCard, BarChart, and DataTable.

opt-ui

PathAnalysis

Blocks

Configure user-path analysis and explore grid or Sankey flows, top paths, drop-off, patterns, entry and exit points, and dwell time.

opt-ui

ProjectOverview

Blocks

Summarize a project with metrics, navigation cards, charts, tables, code snippets, and dashboard management.

opt-ui

RealtimeDashboard

Blocks

Monitor live activity with connection status, metric cards, and an activity feed.

opt-ui

TestAnalytics

Blocks

Analyze test quality with summary cards and six tabs covering overview, stability, failures, flaky tests, performance, and advanced metrics.

opt-ui

UserDetail

Blocks

Build user profiles with avatars, metrics, gauges, progress indicators, tables, and filters.

opt-ui

UserExplorer

Blocks

Explore user records with a DataTable and FilterBar.

opt-ui

VisualDiffManager

Blocks

Review screenshot regressions and approvals with a three-column snapshot list and image-diff viewer.

Related components

opt-ui

DashboardGrid

Shells

Arrange stat cards in one to four columns with two-dimensional arrow-key navigation.

opt-ui

ReportBuilder

Shells

Build reports in four labeled steps: chart type, data, styling, and preview.

opt-ui

InsightsPanel

Shells

Review anomaly insights with severity cards, statistics filters, dismissal, and detection settings for type, Z-score, and days.

opt-ui

TimeRangeSelector

Shells

Choose time ranges using a Popover, DateRangePicker, and preset buttons.

opt-ui

ExportButton

Shells

Export data as CSV or JSON, or delegate PDF export to a callback through a dropdown menu.

opt-ui

ScoreBreakdown

Shells

Explain a composite score through each dimension's value, weight, and meaning alongside the total.

PreviousExportButtonNextEventTimeline