Components › Display
Item
One row of a list: media, a title and description, and actions at the end.
Installation
npx plankui@latest add itemUsage
import { Item } from "@/components/ui/item";
<ItemGroup>
<Item media={<FileTextIcon />} title="Q4 report.pdf" description="2.4 MB" href="/files/q4" actions={<Badge>Shared</Badge>} />
</ItemGroup>API reference
| Prop | Type | Default | Description |
|---|---|---|---|
| title | ReactNode | required | Main text. |
| description | ReactNode | A line under the title. | |
| media | ReactNode | An icon, avatar or thumbnail at the start. | |
| actions | ReactNode | Buttons or a badge at the end. | |
| href | string | Makes the whole row a link; actions stay separate. | |
| size | "sm" | "md" | "md" | Row padding. |