The flap swings open in 3D and the letter rises out. Click, tap, Enter or Space.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | Content of the letter inside the envelope. | |
| width | number | 300 | Width in px. |
| open | boolean | Controlled open state. | |
| onOpenChange | (open: boolean) => void | Called with the new open state whenever it changes. | |
| className | string | Extra classes added to the outer element. |