Animated List
Web (React)
A scrollable, animated list component with keyboard navigation, hover states, and smooth entrance physics.
A scrollable, animated list component with keyboard navigation, hover states, and smooth entrance physics. Perfect for settings menus, notifications, or selecting items from a large list.
Profile Settings
Manage your account details and preferences
Notifications
Configure your email and push alerts
Security
Password, 2FA, and active sessions
Billing
Payment methods and invoice history
Integrations
Connect third-party apps and APIs
Terms of Service
Read our latest usage policies
Advanced
Danger zone and developer settings
Installation
CLI
npx @modus-ui/cli add animated-listManual
- Copy the code from the component tab.
- Create a file at
components/ui/animated-list.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | ReactNode[] | string[] | [...] | The items to display in the list. |
onItemSelect | (item: any, index: number) => void | - | Callback when an item is clicked or selected via Enter key. |
itemClassName | string | - | Classes for each item. |
showGradients | boolean | true | Whether to show fading gradients at the top and bottom of the scroll container. |
enableArrowNavigation | boolean | true | Whether to enable up/down arrow and tab key navigation. |
displayScrollbar | boolean | true | Whether to show the scrollbar. |
initialSelectedIndex | number | -1 | The index of the item that is selected initially. |
Comments