A playful list for pinning and unpinning items, with smooth animated transitions as items move between groups.
<PinList items={ITEMS} />| Prop | Type | Default | Description |
|---|---|---|---|
items | PinListItem[] | (required) | The array of items to display in the list. |
className | string | "" | Additional CSS classes for the root component element. |
labelClassName | string | "" | Additional CSS classes for the section labels. |
pinnedSectionClassName | string | "" | Additional CSS classes for the wrapper of the pinned items. |
unpinnedSectionClassName | string | "" | Additional CSS classes for the wrapper of the unpinned items. |
labels | { pinned?: string; unpinned?: string; } | { pinned: "Pinned", ... } | Custom text for the pinned and unpinned section labels. |
transition | Transition | { type: "spring", ... } | Framer Motion transition object for item layout animations. |
labelMotionProps | HTMLMotionProps<"p"> | { initial: ..., ... } | Framer Motion props for the section label animations. |
zIndexResetDelay | number | 500 | Delay in ms to reset z-index after an animation. |
Pinned Items
All Items