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

Function rightCls

packages/ui/src/context-menu.tsx:48–54  ·  view source on GitHub ↗
(disabled?: boolean, size?: ContextMenuSize)

Source from the content-addressed store, hash-verified

46]
47
48const rightCls = (disabled?: boolean, size?: ContextMenuSize) => [
49 tw`ml-auto pl-6`,
50 size === 'small' && `pl-3`,
51 size === 'large' && `pl-9`,
52 !disabled && tw`text-gray-500`,
53 ...disabledCls(disabled),
54]
55
56export const ContextMenuItem: React.FC<ContextMenuItem> = ({
57 icon,

Callers 2

renderFunction · 0.85
ContextMenuSubFunction · 0.85

Calls 1

disabledClsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…