List

List views are a great way to show a list of tasks grouped by status and ranked by priority.

Installation

npx love-ui@latest add list

Usage

import { ListProvider, ListGroup, ListHeader, ListItems, ListItem } from "@/components/list"
<ListProvider>
  {statuses.map((status) => (
    <ListGroup key={status.id} id={status.id}>
      <ListHeader name={status.name} color={status.color} />
      <ListItems>
        {items
          .filter((item) => item.status.id === status.id)
          .map((item) => (
            <ListItem key={item.id} id={item.id} name={item.name} />
          ))}
      </ListItems>
    </ListGroup>
  ))}
</ListProvider>

Features

  • Drag and drop items between groups
  • Customize the item contents

Examples

Simple version