Oddmash UI
모든 컴포넌트

명령 팔레트

작업을 찾아 실행합니다.

사용법

명시적인 트리거 또는 선택적으로 Mod+K 단축키로 열 수 있습니다. 설명이 있는 그룹 결과와 필요시 자체 검색 필터를 전달하세요.

접근성

화살표 키, Enter, Escape를 사용하세요. 명확한 결과 이름과 설명을 제공하세요.

속성타입기본값
itemsreadonly CommandPaletteItem[]Required
open / defaultOpenbooleanfalse
onOpenChange(open: boolean) => voidNone
shortcutbooleanfalse
dismissLabelstringNone
maxResultsnumberAll
filter(item, query) => booleanDefault matching
<CommandPalette
  trigger={<Button>Commands</Button>}
  title="Commands"
  description="Choose an action"
  searchLabel="Search commands"
  emptyLabel="No commands found"
  dismissLabel="Close commands"
  items={[
    { id: 'save', label: 'Save project', group: 'Project', description: 'Save current changes', onSelect: () => {} },
    { id: 'guide', label: 'Usage guide', group: 'Documentation', onSelect: () => {} },
  ]}
/>

인터랙티브 문서