Interface: RegisteredComponent<T>
Defined in: components.ts:24
Represents a registered component in the Mapples component system. This interface defines all the metadata and configuration needed to register a component for use in the visual editor.
RegisteredComponent
Example
const buttonComponent: RegisteredComponent<ButtonProps> = {
type: 'Button',
Component: Button,
};
Type Parameters
T
T extends object = object
The props type for the component (must extend object)
Properties
type
type:
string
Defined in: components.ts:25
Unique identifier for the component type
Component
Component:
ComponentType<PropsWithChildren<T>>
Defined in: components.ts:26
The actual React component