Function
MenuGroupLabel
({
className,
inset,
...props
}: MenuPrimitive.GroupLabel.Props & {
inset?: boolean;
})
Source from the content-addressed store, hash-verified
| 156 | } |
| 157 | |
| 158 | function 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 | |
| 178 | function MenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props) { |
| 179 | return ( |
Callers
nothing calls this directly
Tested by
no test coverage detected