Interface: ToolbarProps
Props of <Toolbar>: the editor plus KitToolbarOptions.
Extends
Properties
| Property | Type | Description | Inherited from |
|---|---|---|---|
blockTypes? | boolean | Show the "Text style" menu (paragraph, headings). Default true. | KitToolbarOptions.blockTypes |
editor | Editor | The editor to control. A different editor remounts the toolbar. | - |
exclude? | readonly string[] | Buttons to leave out, by id (e.g. ['underline', 'code']). | KitToolbarOptions.exclude |
headingLevels? | readonly number[] | Heading levels in that menu. Match basic({ heading: { levels } }). Default [1, 2, 3]. | KitToolbarOptions.headingLevels |
idPrefix? | string | Prefix for element ids, needed when several editors share a page. Default: generated. | KitToolbarOptions.idPrefix |
link? | boolean | Show the link button and form. Default true. Set false for the Mod-k shortcut too. | KitToolbarOptions.link |
messages? | Partial<Messages> | UI texts, e.g. uz from @writeon/ui/locales/uz. Default English. | KitToolbarOptions.messages |
mobile? | boolean | On touch screens (pointer: coarse), dock the toolbar above the on-screen keyboard while the editor has focus, scrolling sideways. Default true. | KitToolbarOptions.mobile |