Skip to content

    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.

    Open
    Customize
    bottom-right
    bottom-left
    top-right
    top-left

    Installation

    npx shadcn@latest add @glint-ui/peel-decal

    First 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

    PropTypeDefaultDescription
    childrenReactNode—The sticker face. Should fill the box.
    corner"bottom-right" | "bottom-left" | "top-right" | "top-left""bottom-right"Corner that lifts.
    restPeelnumber18Px the corner is lifted at rest, as a hint.
    hoverPeelnumber90Px the corner lifts on hover or focus.
    backColorstring"#f4f4f5"Color of the sticker's paper back.
    radiusnumber28Corner radius in px; match your face.
    labelstring"Sticker. Press Enter to peel"Accessible name.
    classNamestring—Extra classes for the root element.