MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / CommandItem

Function CommandItem

apps/start/src/components/ui/command.tsx:140–154  ·  view source on GitHub ↗
({
  className,
  ...props
}: React.ComponentProps<typeof CommandPrimitive.Item>)

Source from the content-addressed store, hash-verified

138}
139
140function CommandItem({
141 className,
142 ...props
143}: React.ComponentProps<typeof CommandPrimitive.Item>) {
144 return (
145 <CommandPrimitive.Item
146 data-slot="command-item"
147 className={cn(
148 "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
149 className,
150 )}
151 {...props}
152 />
153 );
154}
155
156function CommandShortcut({
157 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected