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

Command

Component

Build command search with automatic filtering and keyboard navigation, inline or inside CommandDialog.

Related docs
bun add @reopt-ai/opt-ui
Install and import
bash
bun add @reopt-ai/opt-ui
tsx
import { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut } from "@reopt-ai/opt-ui";

Live preview

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

100%

Inline Command

결과가 없습니다.
네비게이션
홈으로 이동G H
대시보드 열기G D
작업
새 이슈 생성C
전체 검색/

CommandDialog (Cmd+K 스타일)

Command

PropTypeDefaultDescription
shouldFilterboolean—자동 필터링 여부 (기본 true)
filter(value: string, search: string, keywords: string[]) => boolean—커스텀 필터 함수 (기본: case-insensitive substring)

CommandInput

PropTypeDefaultDescription
trailingReactNode—검색 입력 우측에 표시할 보조 콘텐츠
wrapperClassNamestring—입력 wrapper className

CommandList

PropTypeDefaultDescription
aria-labelstring"Commands"listbox 접근성 라벨

CommandItem

PropTypeDefaultDescription
valueRequiredstring—이 항목의 검색 가능 값 (고유 식별자)
keywordsstring[]—value에 더해 검색어와 비교할 추가 키워드
onSelect(value: string) => void—Enter/클릭 시 호출
View test results

테스트 커버리지

2026년 7월 9일1/1 통과
1성공
0실패
1전체
  • command dialog에 제목, 설명, 입력, 그룹, shortcut을 연결한다

키보드 동작

키동작
↑ ↓활성 항목 이동
Home / End처음/마지막 항목
Enter활성 항목 선택
Escdialog 닫기

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

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.

PreviousErrorBoundaryNextShaderSurface