Toolbar with undo, redo and clear, plus Ctrl+Z and Ctrl+Shift+Z shortcuts.
npx shadcn@latest add @reui/c-signature-pad-2
ReUI limits how often it can be asked, and Undo and redo toolbar hasn't had its turn. Its source will show here once it has.