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

Function MenuGroupLabel

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

Source from the content-addressed store, hash-verified

156}
157
158function MenuGroupLabel({
159 className,
160 inset,
161 ...props
162}: MenuPrimitive.GroupLabel.Props & {
163 inset?: boolean;
164}) {
165 return (
166 <MenuPrimitive.GroupLabel
167 className={cn(
168 "px-2 py-1.5 font-medium text-muted-foreground text-xs data-inset:ps-9 sm:data-inset:ps-8",
169 className,
170 )}
171 data-inset={inset}
172 data-slot="menu-label"
173 {...props}
174 />
175 );
176}
177
178function MenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props) {
179 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected