MMichaelmichael@example.comOwner
RRileyriley@example.com
Installation
$ pnpm dlx shadcn@latest add @synccn/list-itemFirst 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.
PropTypeDescription
- media
React.ReactNodeAvatar, icon or image on the left.
- titlerequired
React.ReactNodeMain text.
- description
React.ReactNodeSecondary text.
- actions
React.ReactNodeControls on the right.
- href
stringRenders the row as a link.
- onClick
() => voidRenders the row as a button.
- className
stringExtra 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
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
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
More display
CardSurface with header, content and footer slots.BadgeSmall status label with an optional dot.AvatarImage with initials fallback, presence dot and stacked groups.KbdKeyboard key for shortcuts and hints.SeparatorHorizontal, vertical or labelled divider.AccordionExpanding sections with smooth height animation.