Skip to content

Interface: KitToolbarOptions ​

Options for mountToolbar().

Extended by ​

Properties ​

PropertyTypeDescription
blockTypes?booleanShow the "Text style" menu (paragraph, headings). Default true.
exclude?readonly string[]Buttons to leave out, by id (e.g. ['underline', 'code']).
headingLevels?readonly number[]Heading levels in that menu. Match basic({ heading: { levels } }). Default [1, 2, 3].
idPrefix?stringPrefix for element ids, needed when several editors share a page. Default: generated.
link?booleanShow the link button and form. Default true. Set false for the Mod-k shortcut too.
messages?Partial<Messages>UI texts, e.g. uz from @writeon/ui/locales/uz. Default English.
mobile?booleanOn touch screens (pointer: coarse), dock the toolbar above the on-screen keyboard while the editor has focus, scrolling sideways. Default true.