MCPcopy
hub / github.com/tinyauthapp/tinyauth / DropdownMenuItem

Function DropdownMenuItem

frontend/src/components/ui/dropdown-menu.tsx:60–81  ·  view source on GitHub ↗
({
  className,
  inset,
  variant = "default",
  ...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
  inset?: boolean
  variant?: "default" | "destructive"
})

Source from the content-addressed store, hash-verified

58}
59
60function DropdownMenuItem({
61 className,
62 inset,
63 variant = "default",
64 ...props
65}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
66 inset?: boolean
67 variant?: "default" | "destructive"
68}) {
69 return (
70 <DropdownMenuPrimitive.Item
71 data-slot="dropdown-menu-item"
72 data-inset={inset}
73 data-variant={variant}
74 className={cn(
75 "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_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]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
76 className
77 )}
78 {...props}
79 />
80 )
81}
82
83function DropdownMenuCheckboxItem({
84 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected