Overview
Components are units of functionality that are bundled together as a single unit, typically as a javascript module. Components are things like charts or tables, although they do not necessarily require a visual aspect.
Component Requirements
- Config Object - the config object is the serialized form of the object. It contains all the information necessary to construct the component.
- Component Module - The Component module exposes a function that takes a config object and returns a functioning component
Adding a Component
Adding a component to a blog or a workspace is easy, just by calling the $page.add method.
await $page.add(config);