Fill Progress Download Button

Arrow sinks away, a deeper blue floods the pill with a live percentage, then it condenses into a calm done chip.

Try it: Click — watch the fill and percentage climb to done.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/fill-progress-download-button.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/fill-progress-download-button. You can also copy the source into components/ui/fill-progress-download-button.tsx (view on GitHub).

Usage

import { FillProgressDownloadButton } from '@/components/ui/fill-progress-download-button'

Props

Component props
PropTypeDefaultNotes
labelstring'Download'Resting label.
doneLabelstring'Saved'Completion label.
onDownload(report: (p: number) => void) => Promise<unknown>—Real work; call report(0..1). Omit for organic simulated progress.
fileNamestring—Optional file hint under the button.
resetAfternumber2800Auto-reset delay in ms (0 keeps done).

Dependencies

  • motion
  • lucide-react
  • Swallow Delete Button

    Bin lid swings open on its hinge, the label’s letters arc inside, the lid snaps shut and a ring traces the receipt.

  • Drop-In Cart Button

    Pill tucks into a cart, a box springs into the basket, the cart rolls away and back while the badge and counter pop.

  • Face Scan Pay Button

    Navy pay pill folds into a lit square, a biometric reticle sweeps a face glyph while a comet laps the rim, then it unfolds with a check.

  • Dispatch Truck Button

    Order pill stretches into a road; a parcel thumps onto a courier flatbed that drives off before a green confirmation pops in.

  • Orbit Dot Export Button

    Pill tucks down to its ring, a shaped comet orbits with a trailing progress arc, the ring floods solid, the arrow bends into a check and the pill reopens as the next action.

  • Loop Flight Send Button

    The pill folds into a circle, the paper plane launches right and writes a looping cursive trail around the button — holding in orbit while the request is pending — then glides back in from the left…

See all 24 Buttons components