MCPcopy Create free account
hub / github.com/TheOrcDev/8bitcn-ui / CommandExample

Function CommandExample

components/examples/command.tsx:47–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45];
46
47export function CommandExample() {
48 return (
49 <Command defaultValue="">
50 <CommandInput placeholder="Type a command..." />
51 <CommandList>
52 <CommandEmpty>No results found.</CommandEmpty>
53 <CommandGroup heading="Suggestions">
54 {suggestionCommands.map((command) => (
55 <CommandItem key={command.value} value={command.value}>
56 {command.symbol}
57 </CommandItem>
58 ))}
59 </CommandGroup>
60 <CommandSeparator />
61 <CommandGroup heading="Settings">
62 {settingCommands.map((command) => (
63 <CommandItem key={command.value} value={command.value}>
64 {command.symbol}
65 <CommandShortcut>{command.shortcut}</CommandShortcut>
66 </CommandItem>
67 ))}
68 </CommandGroup>
69 </CommandList>
70 </Command>
71 );
72}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected