BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/tdds/command

Command

tdds/command
FreeComponent

Command palette component

Install it

npx shadcn@latest add https://raw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/command.json

Source

registry/ui/command.tsxraw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/command.json
1"use client"
2
3import * as React from "react"
4import { Command as CommandPrimitive } from "cmdk"
5
6import { cn } from "@/lib/utils"
7import {
8 Dialog,
9 DialogContent,
10 DialogDescription,
11 DialogHeader,
12 DialogTitle,
13} from "@/components/ui/dialog"
14import {
15 InputGroup,
16 InputGroupAddon,
17} from "@/components/ui/input-group"
18import { SearchIcon, CheckIcon } from "lucide-react"
19
20function Command({
21 className,
22 ...props
23}: React.ComponentProps<typeof CommandPrimitive>) {
24 return (
25 <CommandPrimitive
26 data-slot="command"
27 className={cn(
28 "bg-popover text-popover-foreground p-1 flex size-full flex-col overflow-hidden",
29 className
30 )}
31 {...props}
32 />
33 )
34}
35
36function CommandDialog({
37 title = "Command Palette",
38 description = "Search for a command to run...",
39 children,
40 className,
41 showCloseButton = false,
42 ...props
43}: React.ComponentProps<typeof Dialog> & {
44 title?: string
45 description?: string
46 className?: string
47 showCloseButton?: boolean
48}) {
49 return (
50 <Dialog {...props}>
51 <DialogHeader className="sr-only">
52 <DialogTitle>{title}</DialogTitle>
53 <DialogDescription>{description}</DialogDescription>
54 </DialogHeader>
55 <DialogContent
56 className={cn(
57 "top-1/3 translate-y-0 overflow-hidden p-0",
58 className
59 )}
60 showCloseButton={showCloseButton}
61 >
62 {children}
63 </DialogContent>
64 </Dialog>
65 )
66}
67
68function CommandInput({
69 className,
70 ...props
71}: React.ComponentProps<typeof CommandPrimitive.Input>) {
72 return (
73 <div data-slot="command-input-wrapper" className="p-1 pb-0">
74 <InputGroup className="bg-input/30 border-input/30 h-8! shadow-none! *:data-[slot=input-group-addon]:pl-2!">
75 <CommandPrimitive.Input
76 data-slot="command-input"
77 className={cn(
78 "w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
79 className
80 )}
81 {...props}
82 />
83 <InputGroupAddon>
84 <SearchIcon className="size-4 shrink-0 opacity-50" />
85 </InputGroupAddon>
86 </InputGroup>
87 </div>
88 )
89}
90
91function CommandList({
92 className,
93 ...props
94}: React.ComponentProps<typeof CommandPrimitive.List>) {
95 return (
96 <CommandPrimitive.List
97 data-slot="command-list"
98 className={cn(
99 "no-scrollbar max-h-72 scroll-py-1 outline-none overflow-x-hidden overflow-y-auto",
100 className
101 )}
102 {...props}
103 />
104// … truncated

What it pulls in

npm packages

  • cmdk
  • lucide-react

Other registry items

  • utils
  • dialog
  • input-group

Files it writes

  • registry/ui/command.tsx

Facts

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

Go to the source

icy-river-012b1601e.6.azurestaticapps.net gjohnsx/ttb-label-verification on GitHub Raw registry item This item as JSON

More from tdds

All 43 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordiontddsComponentsFree2 deps
AlertalerttddsComponentsFree1 dep
Alert Dialogalert-dialogtddsComponentsFree1 dep
AvataravatartddsComponentsFree1 dep
BadgebadgetddsComponentsFree1 dep
BreadcrumbbreadcrumbtddsComponentsFree2 deps
ButtonbuttontddsComponentsFree2 deps
Button Groupbutton-grouptddsComponentsFree1 dep
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