Browse components
Peel Decal
A glossy sticker whose corner curls back on hover and follows your drag, showing its paper back and a soft lifted shadow.
Installation
npx shadcn@latest add @glint-ui/peel-decalFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/peel-decal.json
Usage
import { PeelDecal } from "@/components/ui/peel-decal";
<PeelDecal radius={28}>
<div className="size-64 rounded-[28px] bg-lime-300" />
</PeelDecal>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | The sticker face. Should fill the box. |
| corner | "bottom-right" | "bottom-left" | "top-right" | "top-left" | "bottom-right" | Corner that lifts. |
| restPeel | number | 18 | Px the corner is lifted at rest, as a hint. |
| hoverPeel | number | 90 | Px the corner lifts on hover or focus. |
| backColor | string | "#f4f4f5" | Color of the sticker's paper back. |
| radius | number | 28 | Corner radius in px; match your face. |
| label | string | "Sticker. Press Enter to peel" | Accessible name. |
| className | string | — | Extra classes for the root element. |