Component packs › Ferro › Attract List

Attract List

Pin a row and it is pulled up to the magnet bar: it lifts, leans into the pull, flies past the others and lands with a clack.

Attract List is a list from Ferro, a component pack with 7 components: Components that behave like magnets. Price: $5 for the whole pack.

Built with: pull and lean, make room, reading order kept.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Attract List props

PropTypeDefaultDescription
itemsAttractItem[]
titlestringHeading over the list.
onChange(items: AttractItem[]) => voidCalled when a row is pinned or unpinned.
autoplaybooleanShowcase mode: pins and unpins rows until touched.

Methods on the ref

Use it in React

import AttractList from './AttractList';

<AttractList />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Ferro

Good for: Micro-interactions.