fma-ds

Command

A searchable list of commands or actions, filtered live as you type.

OverlaycustomizedMITChangelogRegistry JSON

Overview

  • `CommandDialog`: wraps it in a Dialog for a full command-palette (⌘K) pattern.
  • Empty state: pass CommandEmpty through CommandList's renderEmptyState, not as a child — the list only accepts items, groups and separators.

Installation

  1. 1

    Register the @fma-ds namespace in components.json (once)

    components.json
    {  "registries": {    "@fma-ds": "https://ds.fmartinsandre.dev.br/r/{name}.json"  }}
  2. 2

    Add the item

    pnpm dlx shadcn@latest add @fma-ds/command

    Files land in components/fma-ds/command.tsx; npm and registry dependencies are installed along with them.

Dependencies

npm
cn@^0.5.0lucide-react@^1.61.0react-aria-components@^1.22.1