byronwade/ui
Application UI

Overlays · Application UI

Command

Command palette built on cmdk with dialog and input-group integration.

@byronwade/foundation@byronwade/utils@byronwade/dialog@byronwade/input-groupcmdk@phosphor-icons/react

Feature showcase

Installation

Features

  • 9 examples

    Default, Inline, With Icons, Grouped, Empty State, Actions, Cards, Files, People.

API

Props

PropTypeDefaultDescription
openboolean-CommandDialog: controlled open state.
onOpenChange(open: boolean) => void-CommandDialog: fires when the dialog opens or closes.
titlestring"Command Palette"CommandDialog: visually-hidden accessible title.
descriptionstring-CommandDialog: visually-hidden accessible description.
onSelect(value: string) => void-CommandItem: fires when the item is chosen via click or Enter.

Dependencies

PackageKindDescription
@byronwade/foundationregistryInstalled through the byronwade/ui registry.
@byronwade/utilsregistryInstalled through the byronwade/ui registry.
@byronwade/dialogregistryInstalled through the byronwade/ui registry.
@byronwade/input-groupregistryInstalled through the byronwade/ui registry.
cmdknpmInstalled from npm.
@phosphor-icons/reactnpmInstalled from npm.

Source and related

FilePath
Componentregistry/ui/command.tsx
Default examplecontent/examples/command/default.tsx
Inline examplecontent/examples/command/inline.tsx
With Icons examplecontent/examples/command/with-icons.tsx
Grouped examplecontent/examples/command/grouped.tsx
Empty State examplecontent/examples/command/empty-state.tsx
Actions examplecontent/examples/command/actions.tsx
Cards examplecontent/examples/command/cards.tsx
Files examplecontent/examples/command/files.tsx
People examplecontent/examples/command/people.tsx