Toolbar
Toolbar
is a UI components to change elements on the canvas, reorder and align them, apply undo/redo.
Basic usage:
Also Toolbar
component has additional properties to hide some elements:
#
How to overwrite available properties for an element?In some application you may want to change available properties for selected element. Following Custom Element Example you can make your own React component for any available element.
I recommend to use
blueprintjs
components to make your UI and use<Navbar.Group>
to group inputs. Also remember to wrap your component toobserver
frommobx-react-lite
library to add automatic reactivity of your components.
Example:
#
Text element inputsIf you want to customize the toolbar for an text
element, you can use some built-in inputs: