Actions
Buttons and the Copy, Share, and Download vocabulary every tool uses.
Buttons
Button is the base for every clickable action. Icons attach via data-icon="inline-start"/"inline-end" so padding tightens automatically — never add manual icon margins.
Variants
Sizes
With icons
Leading icons lead the label; trailing icons follow it. Both use the data-icon affordance rather than gap utilities on the icon itself.
States
Loading buttons stay disabled and swap their label for a progress verb. Success is confirmed inline rather than with a separate toast for lightweight actions like copy.
Tool action vocabulary
Every tool draws its Copy, Download, Reset, Clear, Randomize, Add, Remove, Undo, and Redo actions from this exact set of icon + label pairings.
Tools must reuse these exact icon + label pairings for Copy, Download, Reset, Clear, Randomize, Add, and Remove — do not substitute a different lucide icon for the same action.
Source actions
Sample is the outline SampleButton. Upload and Clear stay ghost sm. Clear uses the animated DeleteIcon. Upload is FileDropZone's button variant — click-to-browse, no drop overlay. Pass onUploadClick when the parent already owns a FileDropZone.
Sample
Outline sm, same chrome as ButtonGroup. Main click loads the default sample. Two or more samples add a chevron split that opens a menu. File-stack is the house glyph; do not swap it per tool.
Button group
ButtonGroup merges adjacent buttons into one cluster with shared borders — used for tightly related actions like undo/redo.