How To Add a Component
Steps
- On the Sidebar Menu, select Components
- Select ADD NEW
- Fill in the form with the required details
- On completion, choose either Save or Save and Publish
Form Values
| Name | Type | Example | Description |
|---|---|---|---|
| Path | String | Components/HeroBanner.js | Location/path of the remote component. |
| Platforms / Devices | Array | [web] | Platforms this component applies to. |
| Type | String | Button, Hero, Select Box | Type of component you are creating. |
| Code | HTML / React Code | Code for the component. |
tip
After publishing a component, you can attach it to a Specification.