solid-ui icon indicating copy to clipboard operation
solid-ui copied to clipboard

ContextMenuLabel does not exist

Open Blankeos opened this issue 5 months ago • 1 comments

Reading this: https://www.solid-ui.com/docs/components/context-menu

Manual > Copy and paste the following code into your project

It does not contain <ContextMenuLabel />

But Usage says, it's possible to use

import {
  ContextMenuLabel,
} from "~/components/ui/context-menu"


    <ContextMenuLabel>My Account</ContextMenuLabel>

Blankeos avatar Sep 23 '25 17:09 Blankeos

I'm guessing it's just missing this: (I just renamed what I have in DropdownMenuLabel) since they are pretty much the same...

const ContextMenuLabel: Component<ComponentProps<'div'> & { inset?: boolean }> = (props) => {
  const [, rest] = splitProps(props, ['class', 'inset']);
  return (
    <div
      class={cn('px-2 py-1.5 text-sm font-semibold', props.inset && 'pl-8', props.class)}
      {...rest}
    />
  );
};

Blankeos avatar Sep 23 '25 17:09 Blankeos