ComponentsBackgrounds & effects
Footprints
A snow field that keeps a track of where the pointer has been, pressed into the surface, while falling snow slowly fills it in.
Boots
"use client";
import { Footprints } from "@/components/miyuki-ui/footprints";
export default function FootprintsDemo() {
return (
<Footprints className="flex size-full flex-col items-center justify-center px-6 text-center">
<h2 className="font-display text-5xl leading-[1.05] font-semibold tracking-[-0.03em] sm:text-6xl">
Fresh tracks
</h2>
<p className="mt-3 text-base text-muted-foreground">Move across the snow.</p>
</Footprints>
);
}Skis
"use client";
import { Footprints } from "@/components/miyuki-ui/footprints";
export default function FootprintsSkiDemo() {
return (
<Footprints mode="ski" className="flex size-full flex-col items-start px-7 pt-9 sm:px-12 sm:pt-12">
<h2 className="font-display text-4xl leading-[1.05] font-semibold tracking-[-0.025em] sm:text-5xl">
Nozawa forest loop
</h2>
<p className="mt-3 text-base text-muted-foreground">7.4 km, groomed at 05:40.</p>
</Footprints>
);
}Paws
"use client";
import { Footprints } from "@/components/miyuki-ui/footprints";
export default function FootprintsPawDemo() {
return (
<Footprints mode="paw" fill={20} className="flex size-full flex-col items-start px-7 pt-9 sm:px-12 sm:pt-12">
<h2 className="font-display text-4xl leading-[1.05] font-semibold tracking-[-0.025em] sm:text-5xl">
Something passed in the night
</h2>
<p className="mt-3 text-base text-muted-foreground">A fox, by the look of the prints.</p>
</Footprints>
);
}Install
npx shadcn@latest add @miyuki-ui/footprintsThis needs the @miyuki-ui registry in your components.json. See Using the shadcn CLI.
Props
Footprints
Prop
Type