MCPcopy Create free account
hub / github.com/GrapesJS/react / cx

Function cx

packages/grapesjs-react-app-18/src/examples/common.ts:23–26  ·  view source on GitHub ↗
(...inputs: any[])

Source from the content-addressed store, hash-verified

21export const ROUND_BORDER_COLOR = `rounded border ${MAIN_BORDER_COLOR}`;
22
23export function cx(...inputs: any[]): string {
24 const inp = Array.isArray(inputs[0]) ? inputs[0] : [...inputs];
25 return inp.filter(Boolean).join(' ');
26}
27
28export const getDateString = (date?: Date) => {
29 return date?.toISOString().replace(/Z|T/gi, ' ');

Callers 11

CustomLayerManagerFunction · 0.90
CustomSelectorManagerFunction · 0.90
CustomPageManagerFunction · 0.90
TopbarButtonsFunction · 0.90
CustomModalFunction · 0.90
RightSidebarFunction · 0.90
StylePropertyFieldFunction · 0.90
TraitPropertyFieldFunction · 0.90
LayerItemFunction · 0.90
CustomBlockManagerFunction · 0.90
TopbarFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected