Toolbar Elements
Last updated
Last updated
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.
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:
Property
Type
Description
align
String
The horizontal alignment of the component[left|right|center]
component
Node
React element to insert
order
Number
Index used to list the Toolbar components when rendering