Component packs › Ferro › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
items | AttractItem[] | ||
title | string | Heading over the list. | |
onChange | (items: AttractItem[]) => void | Called when a row is pinned or unpinned. | |
autoplay | boolean | Showcase mode: pins and unpins rows until touched. |
readonly items: AttractItem[]toggle(i: number): voiddestroy(): voidimport AttractList from './AttractList';
<AttractList />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Micro-interactions.