Toolbar Elements
If you have created an element using the ARCLI you will notice that the generated component uses the Element wrapper component:
The Element wrapper component adds the Toolbar component which has a zone included that allows you to add elements to the Toolbar.
Adding Toolbar Elements
You can add Toolbar elements by registering a component with the Toolkit SDK.
When using the Toolkit SDK to add a Toolbar component, the component you register will persist across all Toolbars. You can control it's persistence by rendering null on urls you don't want it to appear on.
You can temporarily register Toolbar elements within a useEffect:
Using the Element wrapper component, you can add temporary Toolbar elements by specifying the toolbar property:
Registry Object
Property | Type | Description |
align |
| The horizontal alignment of the component |
component |
| React element to insert |
order |
| Index used to list the Toolbar components when rendering |
Last updated