MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / MenubarSubTrigger

Function MenubarSubTrigger

src/components/ui/menubar.tsx:219–241  ·  view source on GitHub ↗
({
  className,
  inset,
  children,
  ...props
}: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
  inset?: boolean
})

Source from the content-addressed store, hash-verified

217}
218
219function MenubarSubTrigger({
220 className,
221 inset,
222 children,
223 ...props
224}: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
225 inset?: boolean
226}) {
227 return (
228 <MenubarPrimitive.SubTrigger
229 data-slot="menubar-sub-trigger"
230 data-inset={inset}
231 className={cn(
232 "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
233 className
234 )}
235 {...props}
236 >
237 {children}
238 <ChevronRightIcon className="ml-auto h-4 w-4" />
239 </MenubarPrimitive.SubTrigger>
240 )
241}
242
243function MenubarSubContent({
244 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected