Sidebar Elements
Last updated
Last updated
Sidebar Elements are components added to the Toolkit Sidebar component. You can create new Sidebar Elements by registering components with the Toolkit SDK.
We understand that adding elements to the Sidebar leaves a lot to consider. To lighten the load you can use the Reactium CLI (also known as ARCLI) to generate Sidebar navigation elements.
The Sidebar has a stylized navigation link called the MenuLink which can be used in your project to render a Sidebar element. By default you can add either a Top-Level Link or Child Link via the MenuLink component.
Top-Level Links are also known as groups
When using Reactium.Component.get() to retrieve a registered component, be sure to wrap your work in the plugin-ready hook:
Adding a Child Link works the same as Top-Level Links but the registry object is slightly different:
Specifying the group property will target the ID of a Top-Level Link. In the example above; form is the ID of the Top-Level Link while the Child Link specifies form as the group property value.
Property | Type | Description |
children |
| Content passed to the component |
component |
| Component used to render the Link |
group |
| ID of a Top-Level Link. Used when adding Child Links |
order |
| Index used when rendering elements |
url |
| Wraps the children in an anchor tag |
Any additional properties added to the registry object will be passed to the component as props.