A sticker you can peel off the page and paste back
| Name | Type | Default | Description |
|---|---|---|---|
src | string | Abstract color study | Image printed on the sticker. Transparent PNG or SVG images become die-cut stickers whose border follows their outline. |
alt | string | "Sticker" | Accessible name of the sticker. |
width | number | 300 | Width of the sticker in pixels, border included. It shrinks to fit narrower containers. |
height | number | — | Height in pixels. Defaults to the image's own aspect ratio. |
radius | number | 20 | Corner radius in pixels. Die-cut stickers follow their outline instead. |
border | number | 8 | Width of the die-cut border around the image, in pixels. 0 prints the image edge to edge. |
borderColor | string | "#FFFFFF" | Colour of the die-cut border. |
backColor | string | "#E9E7EF" | Colour of the sticker's back, seen when a corner curls over. |
sheenColor | string | "#FFFFFF" | Colour of the light reflected by the surface as it bends and tilts. |
finish | "gloss" | "matte" | "holo" | "gloss" | Surface of the print. holo adds a foil rainbow that shifts with the viewing angle. |
sheen | number | 0.6 | Strength of the reflections, from 0 (none) to 1. |
rotation | number | 0 | Resting angle in degrees, for a hand-placed look. |
lift | number | 80 | How far the sticker rises toward you while held, in pixels. |
tilt | number | 28 | Largest lean in degrees as the sticker swings behind fast moves. |
bend | number | 0.5 | How much the sheet curls while held, from 0 (a stiff card) to 1 (thin paper). |
elasticity | number | 0.5 | How long the sheet keeps wobbling after a stop, from 0 to 1. |
shadow | number | 0.5 | Strength of the shadow, which softens and spreads as the sticker lifts. |
hoverPeel | number | 0.5 | How far the corner nearest the pointer curls up on hover. 0 turns it off. |
idleHint | boolean | true | Lift a corner now and then, so visitors see the sticker can be peeled. |
draggable | boolean | true | Let the pointer, touch and arrow keys move the sticker. |
bounds | "parent" | "none" | "parent" | Keep the sticker inside its parent element, with a rubbery pull at the edges. |
snapBack | boolean | false | Return the sticker to where it started when it is released. |
raiseOnDrag | boolean | true | Bring the sticker in front of other stickers when it is picked up. |
autoplay | boolean | false | Peel the sticker up and swing it around on its own while nobody is interacting. |
autoplaySpeed | number | 1 | Speed of that demonstration. |
idleDelay | number | 2.5 | Seconds of inactivity before autoplay resumes. |
defaultPosition | { x: number; y: number } | { x: 0, y: 0 } | Starting offset from where the sticker sits in the layout, in pixels. |
onDragStart | () => void | — | Called when the sticker is picked up. |
onDragEnd | (position: { x: number; y: number }) => void | — | Called with the offset where the sticker lands, after a drag or a keyboard move. |
ref | { peel, reset, moveTo } | — | peel() lifts the sticker and sets it back down. reset() returns it home. moveTo(x, y) glides it to an offset. |
className | string | — | Classes for the sticker element. |
style | CSSProperties | — | Inline styles for the sticker element. |
srcstringImage printed on the sticker. Transparent PNG or SVG images become die-cut stickers whose border follows their outline.
Abstract color studyaltstringAccessible name of the sticker.
"Sticker"widthnumberWidth of the sticker in pixels, border included. It shrinks to fit narrower containers.
300heightnumberHeight in pixels. Defaults to the image's own aspect ratio.
—radiusnumberCorner radius in pixels. Die-cut stickers follow their outline instead.
20bordernumberWidth of the die-cut border around the image, in pixels. 0 prints the image edge to edge.
8borderColorstringColour of the die-cut border.
"#FFFFFF"backColorstringColour of the sticker's back, seen when a corner curls over.
"#E9E7EF"sheenColorstringColour of the light reflected by the surface as it bends and tilts.
"#FFFFFF"finish"gloss" | "matte" | "holo"Surface of the print. holo adds a foil rainbow that shifts with the viewing angle.
"gloss"sheennumberStrength of the reflections, from 0 (none) to 1.
0.6rotationnumberResting angle in degrees, for a hand-placed look.
0liftnumberHow far the sticker rises toward you while held, in pixels.
80tiltnumberLargest lean in degrees as the sticker swings behind fast moves.
28bendnumberHow much the sheet curls while held, from 0 (a stiff card) to 1 (thin paper).
0.5elasticitynumberHow long the sheet keeps wobbling after a stop, from 0 to 1.
0.5shadownumberStrength of the shadow, which softens and spreads as the sticker lifts.
0.5hoverPeelnumberHow far the corner nearest the pointer curls up on hover. 0 turns it off.
0.5idleHintbooleanLift a corner now and then, so visitors see the sticker can be peeled.
truedraggablebooleanLet the pointer, touch and arrow keys move the sticker.
truebounds"parent" | "none"Keep the sticker inside its parent element, with a rubbery pull at the edges.
"parent"snapBackbooleanReturn the sticker to where it started when it is released.
falseraiseOnDragbooleanBring the sticker in front of other stickers when it is picked up.
trueautoplaybooleanPeel the sticker up and swing it around on its own while nobody is interacting.
falseautoplaySpeednumberSpeed of that demonstration.
1idleDelaynumberSeconds of inactivity before autoplay resumes.
2.5defaultPosition{ x: number; y: number }Starting offset from where the sticker sits in the layout, in pixels.
{ x: 0, y: 0 }onDragStart() => voidCalled when the sticker is picked up.
—onDragEnd(position: { x: number; y: number }) => voidCalled with the offset where the sticker lands, after a drag or a keyboard move.
—ref{ peel, reset, moveTo }peel() lifts the sticker and sets it back down. reset() returns it home. moveTo(x, y) glides it to an offset.
—classNamestringClasses for the sticker element.
—styleCSSPropertiesInline styles for the sticker element.
—