A vertical list of rows. Selectable rows use a native button; leading/trailing slots must be noninteractive.
A Markdown brief for Claude, Cursor or v0: install, setup, props and a complete example.
For a vertical list of items people scan or open: files, people, recent activity, an inbox with its open and unread items.
Rows with several columns to sort and filter? Table.
A real list. Selectable rows are native buttons, so they are reachable by Tab and work with Enter and Space. The open row carries aria-current, and an unread row says "unread" after its label.
import { List } from '@idyeah/diya'Stable since 1.0.0
itemsRequiredListItem[]The rows, in order.
labelRequiredstringAccessible name for the list; not shown.
dividedbooleanDraws lines between rows.
Default false
size"small" | "medium" | "large"Row height and text size. Defaults to 'medium'.
Default 'medium'
Also takes every native <ul> attribute, such as id, aria-* or data-*.