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

FieldToken

Component

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

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

Live preview

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

100%

스키마 컬럼 목록

  • event_nameVARCHAR
  • user_iduuid
  • occurred_atTIMESTAMP WITH TIME ZONE
  • revenueDECIMAL(12,2)
  • is_internalboolean
  • propertiesJSONB
  • referrerurl
  • client_ipinet
  • tagstext[]

전체 타입

StringNumberBooleanDateDate and timeDurationPercentCurrencyEnumArrayObjectJSONIP addressGeo pointURLEmailIdentifierBinaryAggregateNestedUnknown

크기와 채우기

결제 금액

FieldToken

PropTypeDefaultDescription
typeRequiredFieldDataType—필드 타입. 백엔드 원본 타입은 resolveFieldType으로 변환
size"xs" | "sm" | "md" | "lg""sm"토큰 크기
fill"subtle" | "solid" | "none""subtle"배경 채우기 방식
shape"square" | "circle""square"토큰 모양
titlestring—접근성 이름. 기본값은 타입 이름
decorativebooleanfalse인접 텍스트가 타입을 이미 말할 때 접근성 트리에서 제외
withLabelbooleanfalse글리프 옆에 타입 이름을 함께 표시
labelstring—withLabel이 표시할 문구. 기본값은 타입 이름
classNamestring—추가 CSS 클래스

컴포넌트 의존 관계

깊이
▲ USED BY (2)query-results-tableschema-treeFieldToken
View test results

테스트 커버리지

2026년 7월 9일

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

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

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

Related components

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

Expression

Core

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

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.

NextFacet