MCPcopy Create free account
hub / github.com/composify-js/composify / constructor

Method constructor

packages/react/src/renderer/Block/Block.ts:32–41  ·  view source on GitHub ↗
(name: string, config: BlockConfig)

Source from the content-addressed store, hash-verified

30 };
31
32 constructor(name: string, config: BlockConfig) {
33 this.name = name;
34 this.category = config.category ?? Block.UNCATEGORIZED;
35 this.component = config.component;
36 this.props = config.props as {
37 [key in Key]: PropertySpec<Props[key]>;
38 };
39
40 this.populateDefaults();
41 }
42
43 public getGroupedProps() {
44 const propsByGroup: Record<string, Record<string, PropertySpec<any>>> = {};

Callers

nothing calls this directly

Calls 1

populateDefaultsMethod · 0.95

Tested by

no test coverage detected