BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/snap-cn/follower-rush

Follower Rush

snap-cn/follower-rush
FreeComponent

An X-style follower notification that piles up — avatars stack in and the count explodes, then the row bends into an undulating wave of faces.

Install it

npx shadcn@latest add https://snapcn.dev/r/follower-rush.json

Source

registry/snap-cn/follower-rush/index.tsxsnapcn.dev/r/follower-rush.json · first 6 KB
1"use client";
2
3import { loadFont as loadSans } from "@remotion/google-fonts/Inter";
4import { useState } from "react";
5import {
6 AbsoluteFill,
7 getRemotionEnvironment,
8 Img,
9 interpolate,
10 staticFile,
11 useCurrentFrame,
12 useVideoConfig,
13} from "remotion";
14import { type SnapCnTheme, useSnapCnTheme } from "@/lib/snap-cn-ui";
15
16const { fontFamily: FONT_FAMILY } = loadSans("normal", {
17 weights: ["400", "500", "700", "800"],
18 subsets: ["latin"],
19});
20
21export interface Follower {
22 name: string;
23 /**
24 * Square photo for this follower. Root-relative paths (`/avatars/ada.jpg`) are
25 * served by the app in the browser and rewritten through `staticFile()` in a
26 * render; absolute URLs are passed straight through.
27 *
28 * Omit it and the avatar falls back to the gradient monogram, which is what
29 * makes the fallback worth having: a crowd is the one place a missing photo
30 * shows up as a hole in the row.
31 */
32 avatar?: string;
33}
34
35export interface FollowerRushProps {
36 totalFollowers?: number;
37 followers?: Follower[];
38 /** Overrides the design system's `primary`. */
39 accentColor?: string;
40 /** Design-system token overrides. */
41 theme?: Partial<SnapCnTheme>;
42 mode?: "light" | "dark";
43 orientation?: "horizontal" | "vertical";
44 speed?: number;
45}
46
47interface Theme {
48 bg: string;
49 fg: string;
50 fgMuted: string;
51 /** Placeholder disc behind a photo — `muted`, one step off the page. */
52 avatarBg: string;
53}
54
55// The four surfaces this scene paints, taken from the design system rather
56// than mirrored as hex — so a user's own token overrides reach the pile-up
57// instead of stopping at a copy of the defaults.
58function paletteFrom(t: SnapCnTheme): Theme {
59 return {
60 bg: t.card,
61 fg: t.foreground,
62 fgMuted: t.mutedForeground,
63 avatarBg: t.muted,
64 };
65}
66
67/**
68 * How many photos the sample crowd cycles through.
69 *
70 * 24, because the wave holds 22 avatars and scrolls two spare slots past the
71 * edge (`MAX + 2`), so 24 is the smallest set where no two faces are ever on
72 * screen together. Fewer is fine — they just repeat sooner. More is wasted; only
73 * 24 can ever be visible at once.
74 */
75const SAMPLE_AVATAR_COUNT = 24;
76
77/**
78 * The crowd of names shown in the pile and named in the callout. Purely
79 * flavour — swap it via the `followers` prop.
80 *
81 * Photos come from `public/avatars/01.jpg … 24.jpg`, kept local so the scene
82 * still renders with no network and no CORS. **The files are the only thing this
83// … truncated

What it pulls in

npm packages

  • remotion
  • @remotion/google-fonts

Other registry items

  • https://snapcn.dev/r/snap-cn-ui.json

Files it writes

  • registry/snap-cn/follower-rush/index.tsx

Facts

Registry
snap-cn
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-12
Last confirmed
today

Go to the source

snapcn.dev Raw registry item This item as JSON

More from snap-cn

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Answer Streamanswer-streamsnap-cnComponentsFree2 deps
UI Caretcaretsnap-cnComponentsFree1 dep
Product Herohero-launchsnap-cnComponentsFree2 deps
UI Inputinputsnap-cnComponentsFree2 deps · 2 files
Karaoke Captionskaraoke-captionssnap-cnComponentsFree2 deps
Laptop Framelaptop-framesnap-cnComponentsFree1 dep
Logo Assemblelogo-assemblesnap-cnComponentsFree1 dep
Logo Flickerlogo-flickersnap-cnComponentsFree1 dep
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex