MCPcopy Create free account
hub / github.com/bytebase/dbhub / MenuSubTrigger

Function MenuSubTrigger

frontend/src/components/ui/menu.tsx:205–227  ·  view source on GitHub ↗
({
  className,
  inset,
  children,
  ...props
}: MenuPrimitive.SubmenuTrigger.Props & {
  inset?: boolean;
})

Source from the content-addressed store, hash-verified

203}
204
205function MenuSubTrigger({
206 className,
207 inset,
208 children,
209 ...props
210}: MenuPrimitive.SubmenuTrigger.Props & {
211 inset?: boolean;
212}) {
213 return (
214 <MenuPrimitive.SubmenuTrigger
215 className={cn(
216 "flex min-h-8 items-center gap-2 rounded-sm px-2 py-1 text-base outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-popup-open:bg-accent data-inset:ps-8 data-highlighted:text-accent-foreground data-popup-open:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",
217 className,
218 )}
219 data-inset={inset}
220 data-slot="menu-sub-trigger"
221 {...props}
222 >
223 {children}
224 <ChevronRightIcon className="-me-0.5 ms-auto opacity-80" />
225 </MenuPrimitive.SubmenuTrigger>
226 );
227}
228
229function MenuSubPopup({
230 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected