Now In Code
Get access

Hub-and-Spoke Dot Matrix

An editorial black poster layout where an 8 by 7 dot grid falls off in size from a central hub, and thin white spokes link the hub to selected dots. Tapping a dot adds or removes a spoke, with an intro and gentle breathing drift, rendered as SVG.

Inspired by a design posted on PinterestRebuilt from scratch by Now In Code

Agent prompt

Add the Now In Code component "hub-and-spoke-dot-matrix" to this project.

The full source is attached at the end of this prompt. Put the files under components/hub-and-spoke-dot-matrix/, install the listed dependencies with `npx expo install`, and render it on a route I can open.

Keep the timing and easing values documented in the source comments. Replace the sample copy and artwork with content from my app, or leave placeholders and list what I still need to supply.

=== Source files are attached here for paid plans ===
Pro piece. The prompt includes the full source.Get access

Details

Platforms
iOS, Android
Requires
Expo SDK 54+
Access
Pro
Updated
18 Nov 2026
License
Unlimited commercial projects
Original design
Pinterest

Are you the designer? Ask us to change or remove this.

CLI and MCP server Coming soon

Add pieces from the terminal or let your agent fetch them. Until then, Copy prompt does the same job. Docs

What it does

A black, poster-style card divided by thin gray lines into two upper cells and one large lower cell. The upper left holds a wide title and the upper right a block of small justified capital letters. The lower cell is a grid of dots, eight by seven, with each dot's size shrinking with its distance from a bright hub, and white hairlines running from the hub to ten of the dots. On load the frame lines draw themselves, the text rises into place, the hub pops in with a slight bounce, the dots grow outward from it and the spokes shoot out one after another clockwise. Afterward the hub breathes and drifts slowly while the dot sizes follow it. Tapping a dot draws a new spoke from the hub, or retracts an existing one.

How it's built

A shared core returns a display list of about one hundred nodes for any time and any set of links. The component maps it onto react-native-svg inside a viewBox, so it scales to the parent width, and expo-font loads the two Barlow weights. A requestAnimationFrame loop advances time, with props for a still frame or a frozen moment. Dot size comes from a falloff centered on the moving hub rather than on the grid. Link state is a small pure toggle function, and a half-finished spoke reverses from its current length without a jump. The hit radius for taps is just under half the dot spacing.

Good for

  • A visual that shows a goal connected to the factors that influence it, such as in a health or productivity app
  • Editorial or poster-style cards for a social feed, a marketing page or an empty state
  • A tappable relationship graph with few nodes

Dependencies

react-native-svgexpo-fontreact-native

Tags

ChartDark ModeEditorial LayoutHealth and FitnessBrand and MarketingMinimalPath DrawingPhysics SimulationSocialSpring PhysicsStaggered EntranceState Transition

Related