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, folds into a check and the pill springs open to “Sent!”.
Try it: Click — the plane loops out and back; toggle slow network to watch it hold in orbit.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/loop-flight-send-button.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/loop-flight-send-button. You can also copy the source into components/ui/loop-flight-send-button.tsx (view on GitHub).
Usage
import { LoopFlightSendButton } from '@/components/ui/loop-flight-send-button'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
label / sentLabel / errorLabel | string | 'Send' / 'Sent!' / 'Retry' | Label per stage. |
sendingLabel | string | 'Sending' | Announced (and shown with reduced motion) while in flight. |
onSend | () => void | Promise<unknown> | — | Async work; the plane keeps looping until it settles. Rejecting lands a rose retry state. |
resetAfter | number | 2400 | Auto-reset delay in ms (0 keeps the sent state). |
trail | boolean | true | Draw the tapered ink trail. |
disabled | boolean | false | Disables the button. |
Dependencies
motion
Related Buttons components
- 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.
- Neon Stroke Button
SVG stroke draws around on hover.
- 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.
- Gravity Drop Button
Icon falls in with a bounce on hover.
- 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.
- Split Reveal Button
Face splits open to reveal the label.