Function
CommandItem
({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>)
Source from the content-addressed store, hash-verified
| 126 | } |
| 127 | |
| 128 | function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>) { |
| 129 | return ( |
| 130 | <CommandPrimitive.Item |
| 131 | data-slot="command-item" |
| 132 | className={cn( |
| 133 | "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 data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground", |
| 134 | className, |
| 135 | )} |
| 136 | {...props} |
| 137 | /> |
| 138 | ); |
| 139 | } |
| 140 | |
| 141 | function CommandShortcut({ className, ...props }: React.ComponentProps<"span">) { |
| 142 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected