Skip to Content
✨ Just dropped my UI Library — still cooking up some magic! Stay tuned & maybe… hire me  or sponsor me 😉 
DocumentationAnimatedList

AnimatedList

A smooth, interactive animated list component with keyboard navigation, scroll gradients, and customizable selection handling. Perfect for search results, menu options, or any selectable content.

Install Dependencies

npx
quickcode-ui add AnimatedList

Interactive List with Keyboard Navigation

Interactive Animated List

React Development

TypeScript Integration

UI/UX Design

Database Management

API Development

Mobile App Development

DevOps & Deployment

Testing & QA

Performance Optimization

Security Implementation

Code Review

Documentation Writing

Props

PropTypeDefaultDescription
datastring[]-Array of strings to display in the list (required)
onPick(val: string, idx: number) => void-Callback function when an item is selected
gradientsbooleantrueWhether to show fade gradients at top/bottom when scrolling
arrowKeysbooleantrueEnable keyboard navigation with arrow keys and Tab/Enter
wrapperClassstring""Additional CSS classes for the wrapper container
itemClassstring""Additional CSS classes for individual list items
showScrollbooleantrueWhether to show custom scrollbar styling
startIndexnumber-1Initial selected index (-1 for no selection)
classNamestring-Additional CSS classes for the main container

Features

  • Smooth Animations: Items animate in with staggered timing using Framer Motion
  • Keyboard Navigation: Full arrow key, Tab, and Enter key support for accessibility
  • Auto-scroll: Selected items automatically scroll into view when navigating with keyboard
  • Smart Gradients: Fade effects appear/disappear based on scroll position
  • Custom Scrollbar: Styled scrollbar that matches your theme
  • Hover States: Interactive hover effects with smooth transitions
  • Responsive Design: Adapts to different screen sizes
  • Dark Mode Ready: Built-in support for light and dark themes

Keyboard Controls

  • Arrow Up/Down: Navigate through list items
  • Tab/Shift+Tab: Alternative navigation method
  • Enter: Select the currently highlighted item
  • Mouse: Click or hover to select items

The component automatically handles scrolling the selected item into view and provides visual feedback for the current selection.

Last updated on