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

Function ContextMenuLabel

src/components/ui/context-menu.tsx:187–205  ·  view source on GitHub ↗
({
  className,
  inset,
  ...props
}: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
  inset?: boolean
})

Source from the content-addressed store, hash-verified

185}
186
187function ContextMenuLabel({
188 className,
189 inset,
190 ...props
191}: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
192 inset?: boolean
193}) {
194 return (
195 <ContextMenuPrimitive.Label
196 data-slot="context-menu-label"
197 data-inset={inset}
198 className={cn(
199 "text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
200 className
201 )}
202 {...props}
203 />
204 )
205}
206
207function ContextMenuSeparator({
208 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected