Animated List
A scrolling list whose rows pop in as they scroll into view, with soft fades at both ends. Pick a row with a click or the keyboard.
import { AnimatedList } from "pleate/effects/animated-list";Recent files
Pick a file with the arrow keys and Enter, or click one.
Props
- items
Rows.
T[]- renderItem
Row content.
(item, index, selected) => ReactNodedefault String(item)- onSelect
Called on click or Enter.
(item, index) => void- fades
Fade the top and bottom edges.
booleandefault true- height
Scroll area height in px.
numberdefault 360- label
Accessible name.
stringdefault "Items"
Accessibility
- A listbox: arrow keys, Home and End move the highlight and keep it in view, Enter picks.
- Reduced motion skips the entrance.