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 .
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.
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:
Property
Type
Description
children
Node
Content passed to the component
component
Element
Component used to render the Link
group
String
ID of a Top-Level Link. Used when adding Child Links
order
Number
Index used when rendering elements
url
String
Wraps the children in an anchor tag
The Sidebar has a stylized navigation link called the which can be used in your project to render a Sidebar element. By default you can add either a Link or via the component.
Adding a Child Link works the same as Links but the registry object is slightly different:
Specifying the group property will target the ID of a Link. In the example above; form is the ID of the Link while the specifies form as the group property value.