Function: useToolbar()
ts
function useToolbar(editor, options): UseToolbarResult;Accessible toolbar behaviour. Options are read once, like useEditor().
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
options | ToolbarOptions |
Returns
Example
vue
<div v-bind="toolbar.getRootProps()">
<button v-for="item in toolbar.items" :key="item.id" v-bind="toolbar.getItemProps(item.id)">…</button>
</div>