Function
CommandItem
({
className,
...props
}: React.ComponentProps<typeof CommandPrimitive.Item>)
Source from the content-addressed store, hash-verified
| 140 | } |
| 141 | |
| 142 | function CommandItem({ |
| 143 | className, |
| 144 | ...props |
| 145 | }: React.ComponentProps<typeof CommandPrimitive.Item>) { |
| 146 | return ( |
| 147 | <CommandPrimitive.Item |
| 148 | data-slot="command-item" |
| 149 | className={cn( |
| 150 | "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", |
| 151 | className |
| 152 | )} |
| 153 | {...props} |
| 154 | /> |
| 155 | ) |
| 156 | } |
| 157 | |
| 158 | function CommandShortcut({ |
| 159 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected