Atelier UI

Search components…

Search components…

Button Save

Save button that shows a spinner or filling progress bar, turns green with a check, then resets.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

SaveButtonProps

Also accepts all props of Omit<React.ComponentProps<"button">, "children">

PropTypeDefaultDescription
withProgressbooleanfalseShow a filling progress bar instead of a spinner while saving
saveLabelstring"Save"—
savedLabelstring"Saved"—
durationnumber1600Simulated save duration in milliseconds
onSave() => void——

Install

$ npx shadcn@latest add https://chromotion.dev/r/button-save.json

The CLI installs the base component; your customizations live in the code generated on the Customize tab.

More like this