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

ColorPicker

Component

Choose colors from a preset palette or enter a hex value.

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

Live preview

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

100%

Controlled

Brand Color
#3b82f6

Uncontrolled

Accent Color

Disabled

Locked

ColorPicker

PropTypeDefaultDescription
valuestring—제어 모드: hex 색상 값 (예: '#3b82f6')
onChange(color: string) => void—색상 변경 핸들러
presetsstring[]—프리셋 색상 배열 (기본 16색)
labelstring—입력 필드 레이블
disabledbooleanfalse비활성화 상태

컴포넌트 의존 관계

깊이
▲ USED BY (1)event-meta-editorColorPicker
View test results

테스트 커버리지

2026년 7월 9일8/8 통과
8성공
0실패
8전체
  • label을 렌더링한다
  • 현재 색상 값을 표시한다
  • disabled 상태를 지원한다
  • 클릭 시 팝오버를 연다
  • error 메시지를 표시한다
  • hint 텍스트를 표시한다
  • label 없이 aria-label만 있어도 hint를 aria-describedby로 연결한다
  • required prop이 RequiredMark를 표시한다

Related components

opt-ui

Select

Core

Build a dropdown selection with Root, Label, Trigger, Popover, and Item components.

opt-ui

Combobox

Core

Build autocomplete search with an input, popover, items, groups, group labels, and an empty state.

opt-ui

Button

Core

Use accessible buttons with primary, secondary, ghost, and danger variants, three sizes, icons, loading, and aria-busy states.

opt-ui

Input

Core

Use a standalone text input with labels, errors, hints, and icons.

opt-ui

Switch

Core

Toggle a setting with three sizes and explicit accessible associations for labels and descriptions.

opt-ui

Textarea

Core

Enter multiline text with the same label, error, and hint API as Input.

PreviousTagInputNextIconPicker