Send Button

A paper plane that winds up, takes off with a contrail and loops back.

Preview

"use client";

import { SendButton } from "@/components/motion/send-button";

export function SendButtonUsage() {
  return (
    <SendButton
      onSend={async () => {
        // Replace with your request; Sending shows until it settles.
        await new Promise((resolve) => setTimeout(resolve, 800));
      }}
    />
  );
}

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @beui/send-button

API Reference

onSend?
(() => unknown)

Runs the send. Return a promise to keep Sending up until it settles.

Default—
labels?
Partial<{ send: string; sending: string; sent: string; }>

Override any built-in string, e.g. for translation.

Default—
sound?
boolean

Play a swish as the plane leaves and a success chime once sent. Off by default; a `SoundProvider` can mute it app-wide.

Defaultfalse
className?
string

Classes merged onto the root element.

Default—

Updated