Componentticket-stub
AirmailLetter
Airmail bordered letter with red/blue diagonal stripes, mono lines, a postmark corner and an unfold entrance.
Preview
Live Preview
Dear friend,
Wish you were here!
Greetings from the road
Airmail — Priority Mail
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add airmail-letterOr install the full npm package:
npm install bigbulluiUsage
import { AirmailLetter } from "@/components/ui/airmail-letter";
<AirmailLetter lines={["Dear friend,", "Wish you were here!"]} />Source code
airmail-letter.tsxZero dependencies (only React + utils). Copy and paste directly into your project:
"use client";
import * as React from "react";
import { cn } from "./lib/utils";
export interface AirmailLetterProps {
lines: string[];
className?: string;
}
export function AirmailLetter({ lines, className }: AirmailLetterProps) {
return (
<div
className={cn(
"relative rounded-lg border border-border bg-card p-6 motion-reduce:transition-none",
className
)}
>
<style>{`
@keyframes airmailUnfold {
from { transform: translateY(20px) scale(0.95); opacity: 0; }
to { transform: translateY(0) scale(1); opacity: 1; }
}
`}</style>
<div
className="absolute top-3 right-3 size-6 rounded-full border border-destructive bg-destructive"
/>
<div className="mt-4 space-y-2 max-h-[60%] overflow-y-auto">
{lines.map((line, i) => (
<div key={i} className="font-mono text-[10px] uppercase tracking-[0.15em] text-muted-foreground">
{line}
</div>
))}
</div>
<div className="mt-2 text-xs text-muted-foreground/60">
Airmail — Priority Mail
</div>
</div>
);
}Props
| Prop | Type | Description |
|---|---|---|
| lines | string[] | Mono letter body lines. |
| className | string | Additional classes. |