Toolbar Extensions

Add buttons and menus to the editor toolbar.

Example

from smallblock.toolbar import Toolbar

def setup(toolbar: Toolbar):
    toolbar.add_button(label="Purge Cache", action="/admin/purge")

UX Notes

  • Keep labels short.

  • Prefer idempotent actions and confirmation prompts.