reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
Overview205Core74Shells99Blocks32
ComparisonSelector
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.

ComparisonSelector

Shell

Choose two comparison values with individually labeled Select controls and a swap button.

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

Live preview

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

100%

기본 사용

Base
Compare

ComparisonSelector

PropTypeDefaultDescription
segmentsRequiredComparisonOption[]—선택 가능한 세그먼트 목록
valueAstring—Base 선택값
valueBstring—Compare 선택값
onChangeA(value: string) => void—Base 변경 핸들러
onChangeB(value: string) => void—Compare 변경 핸들러
labelsComparisonSelectorLabels—i18n용 라벨 오버라이드

컴포넌트 의존 관계

깊이
▼ USES (2)ComparisonSelectorselectbutton
View test results

테스트 커버리지

2026년 7월 9일3/3 통과
3성공
0실패
3전체
  • Base와 Compare 라벨을 렌더링한다
  • Swap 버튼이 존재한다
  • 셀렉터 그룹과 trigger 이름을 보조기기에 노출한다

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

SummaryRow

Shells

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

PreviousFlyoutNextThemeSwitcher