Skip to content

Interface: ToolbarProps ​

Props of <Toolbar>: the editor plus KitToolbarOptions.

Extends ​

Properties ​

PropertyTypeDescriptionInherited from
blockTypes?booleanShow the "Text style" menu (paragraph, headings). Default true.KitToolbarOptions.blockTypes
editorEditorThe editor to control. Read once, on mount.-
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?stringPrefix for element ids, needed when several editors share a page. Default: generated.KitToolbarOptions.idPrefix
link?booleanShow 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?booleanOn touch screens (pointer: coarse), dock the toolbar above the on-screen keyboard while the editor has focus, scrolling sideways. Default true.KitToolbarOptions.mobile