Skip to content
synccn

List Item

New

Row with media, title, description and actions.

MMichaelmichael@example.comOwner
RRileyriley@example.com

Installation

$ pnpm dlx shadcn@latest add @synccn/list-item

First time in this project? Connect synccn with one command.

Usage

import { ListItem } from "@/components/ui/status-indicator";<ListItem media={<Avatar />} title="Michael" actions={…} />

API reference

Generated from the component's TypeScript types, so it always matches the code.

ListItem

Flexible row for lists: media, title, description and trailing actions.

  • media
    React.ReactNode

    Avatar, icon or image on the left.

  • titlerequired
    React.ReactNode

    Main text.

  • description
    React.ReactNode

    Secondary text.

  • actions
    React.ReactNode

    Controls on the right.

  • href
    string

    Renders the row as a link.

  • onClick
    () => void

    Renders the row as a button.

  • className
    string

    Extra classes for the root element.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA roles: status
  • Respects the reduced motion setting
  • Shows a visible focus ring for keyboard users
  • Announces changes to screen readers