❍Sakura Drift

Sakura Drift

A gnarled cherry blossom tree on a rocky outcrop, swaying in wind and shedding petals — the cursor is a gust that scatters them.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/sakura-drift.json

▸ Or install manually

  1. Copy the source from the Code tab above.
  2. Place it at components/mellow/sakura-drift.tsx
  3. Import and use.

API Reference

PropTypeDefaultDescription
petalCountnumber90Number of falling petals.
windnumber0.5Wind strength 0–1: sway amplitude and horizontal drift.
treeAlign"left" | "center" | "right""left"Horizontal anchor of the tree.
petalColorstring—Petal / blossom color. Defaults to a themed sakura pink.
branchColorstring—Branch color. Defaults to rgba(var(--ink-rgb), 0.75).
treeImagestring"https://www.mellowui.com/trees/gnarled-tree.webp"URL of a transparent image of a bare tree. Replaces the procedural tree.
blossomAnchorsBlossomAnchor[]—Blossom positions over the image, as fractions of the drawn image box.
childrenReact.ReactNode—Hero content rendered above the canvas.
classNamestring—Additional CSS classes.