Black Friday: 30% off Pro

Get 30% off

Updated

Send

Preview

Document.file

478.5kb

Customize

Split
Sent color
Upload2.6s
Flight0.375s

Installation

npx shadcn@latest add https://uibrik.com/r/send.json
Adds the files to components/uibrik/send and installs @tabler/icons-react and motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/send.

Usage

import { SendFile } from "@/components/uibrik/send/send";​<SendFile  exitStyle="split"  fileName="Document.file"  fileSize="478.5kb"  label="Send"  sentColor="#16a34a"  uploadDuration={2.6}  flightDuration={0.375}/>

Where to use Send

  • File sharing apps

    An upload that fills then launches a paper plane makes sending feel complete.

    Pairs with File Dropzone

  • Form uploads

    The plane leaving the card is a clear success state after submitting.

  • Sending documents

    A visible send moment reassures users the file went.

Props

SendFile
exitStyle
Type "split" | "fade"
"split"
How the finished panel leaves.
fileName
Type string
"Document.file"
fileSize
Type string
"478.5kb"
label
Type string
"Send"
Button text.
sentColor
Type string
"#16a34a"
The panel warms to this colour as the upload fills.
uploadDuration
Type number
2.6
How long the simulated upload takes.
flightDuration
Type number
0.375
How long the plane takes to fly off.