Skip to content
caliper ui pro docs

Send fold

A message that folds itself into a paper plane when sent. The card's contents fade, the paper folds to a dart and it flies off up and away; a short confirmation takes its place with a way to write another.

Pro

To dev.patel@northwind.io

Hi Dev, I've set up our workspace for the pricing project. Join when you have a minute and have a look at the draft.

Maya

When to use

  • Invites, feedback, notes and postcards: messages that leave the product.
  • The one send in a flow worth celebrating.

When not to use

  • Chat, where messages stay in the thread.
  • Sends that may fail later; fold only once it has gone.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/send-fold

Adds its 3 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

SendFold

4 props

Also accepts the native props of its root element and a ref.

PropTypeDefaultDescription
children *ReactNode—The message as it will be sent: a note, an invite, a postcard.
onSend *() => void | Promise<void>—Sends it; the fold waits for this to finish, and an error keeps the message open.
sendLabelstring"Send"
sentLabelstring"Sent"What was sent, e.g. "Invite sent to maya@northwind.io".

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes alert and status semantics, with aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/send-fold.md

The index of every part is at /llms.txt.

More in Surfaces