BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/muffled-ui-registry/command

Command

muffled-ui-registry/command
FreeComponent

Command palette for search and quick actions. Paper popover, hairline border, no shadow.

Live preview

live · rendered by the registry
Rendered by muffled-ui-registry on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.muffled.studio/r/command.json

Source

registry/ui/command.tsxui.muffled.studio/r/command.json
1import { Command as CommandPrimitive } from "cmdk";
2import { CheckIcon, SearchIcon } from "lucide-react";
3import type * as React from "react";
4import { cn } from "@/registry/lib/surface";
5import {
6 Dialog,
7 DialogContent,
8 DialogDescription,
9 DialogHeader,
10 DialogTitle,
11} from "@/registry/ui/dialog";
12import {
13 InputGroup,
14 InputGroupAddon,
15} from "@/registry/ui/input-group";
16
17function Command({
18 className,
19 ...props
20}: React.ComponentProps<typeof CommandPrimitive>) {
21 return (
22 <CommandPrimitive
23 data-slot="command"
24 className={cn(
25 "flex size-full flex-col overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-none",
26 className,
27 )}
28 {...props}
29 />
30 );
31}
32
33function CommandDialog({
34 title = "command palette",
35 description = "search for a command.",
36 children,
37 className,
38 showCloseButton = false,
39 ...props
40}: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
41 title?: string;
42 description?: string;
43 className?: string;
44 showCloseButton?: boolean;
45 children?: React.ReactNode;
46}) {
47 return (
48 <Dialog {...props}>
49 <DialogHeader className="sr-only">
50 <DialogTitle>{title}</DialogTitle>
51 <DialogDescription>{description}</DialogDescription>
52 </DialogHeader>
53 <DialogContent
54 className={cn(
55 "overflow-hidden p-0 shadow-none duration-[var(--d-drift)] ease-[var(--ease-drift)] data-open:[--tw-enter-scale:1] data-closed:[--tw-exit-scale:1]",
56 className,
57 )}
58 showCloseButton={showCloseButton}
59 >
60 {children}
61 </DialogContent>
62 </Dialog>
63 );
64}
65
66function CommandInput({
67 className,
68 ...props
69}: React.ComponentProps<typeof CommandPrimitive.Input>) {
70 return (
71 <div data-slot="command-input-wrapper" className="border-b border-border p-2">
72 <InputGroup className="h-8 border border-border bg-background shadow-none">
73 <CommandPrimitive.Input
74 data-slot="command-input"
75 className={cn(
76 "w-full bg-transparent font-sans text-sm outline-none disabled:cursor-not-allowed disabled:opacity-40",
77 className,
78 )}
79 {...props}
80 />
81 <InputGroupAddon>
82 <SearchIcon className="size-4 shrink-0 opacity-60" strokeWidth={1.5} />
83 </InputGroupAddon>
84 </InputGroup>
85 </div>
86 );
87}
88
89function CommandList({
90 className,
91 ...props
92}: React.ComponentProps<typeof CommandPrimitive.List>) {
93// … truncated

What it pulls in

npm packages

  • cmdk
  • lucide-react

Other registry items

  • @muffled/surface
  • @muffled/dialog
  • @muffled/input-group

Files it writes

  • registry/ui/command.tsx

Facts

Registry
muffled-ui-registry
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on muffled-ui-registry ui.muffled.studio muffled-studio/muffled.ui on GitHub Raw registry item This item as JSON

More from muffled-ui-registry

All 55 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionmuffled-ui-registryComponentsFree2 deps
Alertalertmuffled-ui-registryComponentsFree1 dep
Alert Dialogalert-dialogmuffled-ui-registryComponentsFree1 dep
Avataravatarmuffled-ui-registryComponentsFree1 dep
Badgebadgemuffled-ui-registryComponentsFree2 deps
Breadcrumbbreadcrumbmuffled-ui-registryComponentsFree2 deps
Buttonbuttonmuffled-ui-registryComponentsFree2 deps
Button Groupbutton-groupmuffled-ui-registryComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex