Account

Originals

Creative

Stamp

It drops from above, lands with a squash, leaves uneven ink and knocks the surface under it. For approvals, shipped orders, completed tasks, certificates and 'sold out' moments.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add stamp

Usage

Example
import { Stamp } from "@/components/galactrex/stamp";

<Stamp label="Approved" detail="04 · 10 · 26" trigger="manual" stamped={approved} />

Source

Installs to components/galactrex/stamp.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
labelstring—The stamped word.
detailstring—A small second line, such as a date.
trigger"mount" | "inView" | "manual""inView"When it lands.
stampedboolean—Lands when true, for trigger="manual".
tiltnumber-8Resting tilt in degrees.
wearnumber0.45How worn the ink looks, 0 to 1.
impactbooleantrueKnock the surface it lands on.
onStamp() => void—Called when it touches down.
classNamestring—Extra classes for the outer element.

Variants

  • Approval. Lands when a request is approved: `trigger="manual"`.
  • Certificate. With `detail` for a date or a number.

Accessibility

  • The label is real text, readable before and after the animation.
  • The ink texture is an SVG filter; contrast stays that of the theme ink.

Motion and reduced motion

  • Transform and opacity for the drop; one Web Animations knock on the parent.
  • Reduced motion: it is simply there, without drop or knock.