MCPcopy Create free account
hub / github.com/editablejs/editable / ContextMenuSub

Function ContextMenuSub

packages/ui/src/context-menu.tsx:99–114  ·  view source on GitHub ↗
({ title, icon, children, disabled })

Source from the content-addressed store, hash-verified

97}
98
99export const ContextMenuSub: React.FC<ContextMenuSub> = ({ title, icon, children, disabled }) => {
100 return (
101 <MenuSub>
102 <MenuSubTrigger disabled={disabled} css={itemCls(disabled)}>
103 {icon && <span css={iconCls(disabled)}>{icon}</span>}
104 {title}
105 <div css={rightCls(disabled)}>
106 <Icon name="arrowRight" />
107 </div>
108 </MenuSubTrigger>
109 <MenuSubContent sideOffset={2} alignOffset={-5}>
110 {children}
111 </MenuSubContent>
112 </MenuSub>
113 )
114}
115
116export interface ContextMenuSeparatorProps {
117 className?: string

Callers

nothing calls this directly

Calls 3

itemClsFunction · 0.85
iconClsFunction · 0.85
rightClsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…