REFERENCE
- Gallery page: https://magpui.com/en/i/pinned-rows-glide-into-place-06a88c
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/pinned-rows-glide-into-place-06a88c/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/pinned-rows-glide-into-place-06a88c/clip.mp4
- Original post: https://smoothui.dev/docs/components/pinned-list by Edu Calvo
Before building, download the first frame and look at it. If ffmpeg is available, download the clip and extract frames (ffmpeg -i clip.mp4 -vf fps=2 frame-%02d.png), then study the motion frame by frame. Match what you see; the text below describes it, the frames are the truth.
BUILD: Build a compact inbox list whose rows can be pinned and unpinned. Selected rows move into a top group with a quiet physical landing; preserve the identity and focus of each moving row.
DESIGN SYSTEM: Use a roughly 380px-wide pale panel, 12px padding, 8px corner radius and a compact header showing the pinned count. Rows are about 44px tall, with 8px gaps, 13px sans-serif titles and 11px muted subtitles. Use #fafafa surfaces, #e4e4e7 borders, #252525 text and #ec4899 pin accents. Pinned rows gain a subtle shadow and a short pink leading rail; unpinned rows remain flat. Separate the groups with a thin rule.
MOTION: On pin or unpin, animate layout displacement over approximately 420ms with cubic-bezier(0.22,1,0.36,1), permitting only a slight settling overshoot. Animate the pin rotation by 45 degrees over 200ms and its fill color over 160ms. Compress a landing row to scale 0.985 then settle to 1 over 220ms. Close the vacated gap with 25ms stagger between affected rows. Treat timings as reconstruction targets rather than measured source values.
SECTIONS: Header with current pinned count and limit; pinned rows; separator; unpinned rows. Each row has an outline content icon, title, short secondary text and pin glyph. Include idle, focused, pinned, unpinned and limit-reached states.
IMPLEMENTATION: Use React with Motion layoutId to retain each row across reordering and shadcn-compatible project primitives. Keep a single semantic list and stable keys. Support Enter, Space and P to toggle, arrow-key navigation, aria-pressed, descriptive labels and visible focus. Use a configurable pin limit. Honor reduced motion with immediate reordering and no landing pop. Keep 4px internal space for focus rings and overshoot; never move focus away from the toggled row.
ADAPT TO THE PROJECT: Reuse existing project tokens, components and fonts; map estimated colors to the closest tokens. Never copy source logos, brand names, photographs or illustrations. Use placeholders.
SUCCESS CHECK:
- All described open/closed or pinned/unpinned states render without clipping.
- Pointer, touch and keyboard controls work and focus stays visible.
- Reduced motion remains usable and component fits narrow viewports.