ValyroUI Русская версия

Pin List

Pinnable list: items glide between groups. Pro · Animated components › Lists and people

A list whose items can be pinned to a group on top: the moved item slides into place and the rest close ranks (one layout animation per change, no render per frame). Keyboard focus follows the item.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add pin-list
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { PinList } from 'valyro-ui-pro';

Props

PropTypeDefault
items *readonly PinListItem[]Items in their natural order; pinned ones are shown first in the order they were pinned.
pinnedstring[]Ids of the pinned items. Saving them between sessions is up to the app.
defaultPinnedstring[][]Initial pinned when uncontrolled.
onPinnedChange(pinned: string[]) => voidCalled with the new pinned when it changes.
animation'spring' | 'none''spring'spring (default): an item slides into its new group and the others close ranks; none: instant.
headingLevel2 | 3 | 4 | 5 | 63Level of the two group headings (default 3).
labelsPartial<PinListLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Number Wheel · Next: Notification Stack · All Animated components