Forms · ui · 16K

List box

The classic scrolling list: a 1px-framed box with a System 7 scroll bar, 16px icons, whole-row inverted selection, single or multiple selection (Shift, ⌘, drag), type-ahead and an ARIA listbox with aria-activedescendant.

Install

pnpm dlx shadcn@latest add @s7ui/list-box

Example

This example also uses @s7ui/icons @s7ui/label.

Hard Disk
Documents
System Folder
Letter to Ann
Budget 1992
Read Me
Text Editor
Paint
Scrapbook File

Double-click or press Enter to open.

Athens
Cairo
Courier
Geneva
Helvetica
London
Los Angeles
Mobile
New York
Palatino
San Francisco
Symbol
Times
Venice

2 selected. Shift or ⌘ to extend.

Info

Files:
components/ui/list-box.tsx
Uses:
@s7ui/theme, @s7ui/scroll-area, @s7ui/file-view-lib
Packages:
—