Primitives
Editor.UndoButton
Toolbar button that dispatches actions.undo().
Toolbar button that dispatches actions.undo().
Usage
import { Editor } from '@docmosaic/react';
<Editor.Root>
<Editor.UndoButton />
</Editor.Root>;API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "default" | "cream" | "sage" | "orange" | "caramel" | "white" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined | - | Override the button variant. Defaults to |
| className | string | undefined | - | Extra classes merged onto the button. |
Related
- Root - the orchestrator