A high-level list component for Ink applications. Manage selection, auto-scrolling, and content alignment with ease.
Powered by ink-canvas & ink-scroll-bar
A controlled component for list navigation in your CLI apps.
Selection state is fully managed by the parent via the selectedIndex prop. You have complete control over navigation logic.
Automatically scrolls the viewport to keep the selected item visible whenever selectedIndex changes.
Control how items align when selected: Top, Bottom, Center, or Auto (minimal scrolling). Configure via scrollAlignment prop.
When a selection exists, scroll methods are constrained to keep the selected item visible. Supports large items too!