ConstExample Usage
const ns = createNamespace({ name: 'com.my-company' });
const element = createElement(ns, {
name: 'My Custom Control',
description: 'Control that allows controlling Retro Encabulators',
traits: [traits.Control],
propsSchema: createPropsSchema().initial({}),
Component() {
return <div>My Control Content</div>;
},
});
Makes an element appear and behave as a HELIO Control.
Elements with this trait will: