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

Expression

Component

Read and edit conditions as sentences for alert rules and segment filters that need to be easy to verify.

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

Live preview

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

100%

알림 규칙

열린 절: 없음

상태

grouped overall eventsnotifySlack #alerts

컬럼 배치

Expression

PropTypeDefaultDescription
descriptionRequiredReactNode—고정되는 절반 (WHEN, IS ABOVE …)
valueReactNode—편집되는 절반
toneExpressionTone"accent"의미별 색상
activebooleanfalse편집기 열림 상태
invalidbooleanfalse유효하지 않은 절
disabledbooleanfalse비활성
onClick() => void—편집기 열기
display"inline" | "stacked""inline"문장 흐름 유지 vs 값 아래 배치
aria-labelstring—접근성 이름
classNamestring—추가 CSS 클래스

ExpressionGroup

PropTypeDefaultDescription
childrenRequiredReactNode—절들
display"sentence" | "columns""sentence"문장 배치 vs 컬럼 정렬
classNamestring—추가 CSS 클래스
aria-labelstring—그룹 접근성 이름
View test results

테스트 커버리지

2026년 7월 9일

생성된 테스트 결과를 찾지 못했습니다.

Expression 항목이 문서 메타에 연결되어 있지만 현재 생성 파일에는 없습니다.

테스트를 추가한 뒤 `bun run generate:test-results`를 실행하거나 `testDescribe` 매핑을 다시 확인하세요.

Related components

opt-ui

FieldToken

Core

Display field types with consistent glyphs and optional labels for strings, numbers, dates, IP addresses, and geographic data.

opt-ui

Facet

Core

Filter by field values while reading their counts and distribution bars. Show top values first and collapse the long tail.

opt-ui

TextTruncate

Core

Measure text in its actual font and available width to truncate the start, middle, or both ends while preserving the full accessible text.

opt-ui

Highlight

Core

Mark matching search terms with semantic mark elements, matching longer terms first to avoid fragmented overlaps.

opt-ui

LiveRegion

Core

Announce live updates to screen readers with throttled summaries and alternating nodes that can repeat identical messages.

opt-ui

ColorPalette

Core

Preview and select visualization palettes using categorical swatches or sequential and diverging gradients.

PreviousFacetNextTextTruncate