ProInteraction
Stamp Button
A button that stamps an expanding ink mark when pressed, confirming the action.
- Plan
- Pro · commercial license
- Dependencies
- React only
- Props
- 13 (10 adjustable)
Included in Pro and Lifetime. See pricing
Made with Furin: Pill Nav · Metal Button · Copy Morph
Props
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "Confirm" | Button text before stamping. |
confirmedText | string | "Done" | Text carried by the stamp when it lands; also announced to screen readers. |
ink | string | "#E8452C" | Ink color of the stamp. |
shape | "circle" | "square" | "circle" | Shape of the ink mark: "circle" or "square". |
color | string | "#FFFFFF" | Color of the button face. |
textColor | string | "#111111" | Color of the button text. |
duration | number | 2400 | Milliseconds the stamp stays before the button returns (0 = stays confirmed). |
irregularity | number | 1 | How ragged the ink edge is: 0 = clean, 1 = normal, 2 = heavily worn. |
autoplay | boolean | false | If true, it stamps itself every few seconds until someone touches it (for demos). |
onConfirm | () => void | undefined | Called the instant the stamp lands on the button. |
disabled | boolean | false | Disables the button. |
className | string | "" | Extra CSS class for the button. |
style | CSSProperties | "{}" | Inline styles for the button. |
Installation
With your license
1Set up the Pro registry once
Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.
Use my license2Install Stamp Button
npx shadcn@latest add @furin-pro/ stamp-buttonDependencies
- React
- 18 or later
- Other libraries
- none
- License
- commercial
Pro components install into your project: the code is yours and there's nothing else to download.