Rich text / foldkit-mixins-richtext

codeToolbar

function · packages/mixins-richtext/src/code.ts:42

function codeToolbar<Message>(): SlotView.SlotView<
  typeof CodeToolbarSlots,
  CodeToolbarInput<Message>,
  Message
>

The code block toolbar as a slot view. The picker shows the block's language, and a language the list does not name is offered as itself, so choosing nothing never changes it. Nothing is drawn for a block that is not there.