SwatchFan
A fanned stack of {@link Swatch} tiles: a fixed three-card editorial fan or
an interactive N-tile splay.
Pass 3 items with interaction="breathe" for the editorial fan (Figma
geometry, variant spread/stack, white 3px mount via bordered); pass N
items with interaction="hover-fan" for the interactive splay-on-hover with
pointer tilt. bordered={false} swaps the white mount for the 1px hairline
tile.
Usage
Best practices
Feed 3 items for the
breathe/nonecard engine - its Figma geometry, z-order, andvariantmorphing are built around a fixed left/center/right trio; the hover-fan engine is the N-tile path.Needs
ReducedMotionProvider; it already collapses the mount fan-out, hover nudge, and splay under reduced motion (snapping to the settled frame), so don't gate the interaction yourself.borderedis the mount-as-a-prop:true= white 3px card mount,false= 1px hairline - don't hand-roll either border in a wrapper.
Props
Also exports
- interface
SwatchFanImageProps - type
SwatchFanInteraction - interface
SwatchFanItem - interface
SwatchFanProps - type
SwatchFanSize - type
SwatchFanVariant
Composition
Used by