solid-ui
solid-ui copied to clipboard
ContextMenuLabel does not exist
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>
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}
/>
);
};