List

Rows with a selection that springs between them and arrow-key navigation.

Reviewer notes9:41
Camera-readyMon
Grant draftSun

Features

  • A selection that springs between rows.

Use it for

  • Inboxes, sessions, files.

Installation

  1. Get runets.
    git clone https://github.com/ziyam-khan/runets
  2. Copy these files into your project, keeping their folders.
  3. Install what they use.
    pnpm add react motion
  4. Load the styles once. Bring your own base tokens, or use runets’ default theme.
    import 'runets/styles/theme.css'
    import 'runets/styles/kit.css'

Usage

import { List } from 'runets'

<List label="Inbox" rows={[{ id: 'a', title: 'Reviewer notes', detail: '9:41' }]} />

API

PropTypeWhat it does
rowsRow[]{ id, title, detail, icon }.
labelstringName of the list.

Accessibility

Source

The code is in src/kit/surfaces.tsx in runets, MIT licensed.