Components › Display

Item

One row of a list: media, a title and description, and actions at the end.

Installation

npx plankui@latest add item

Usage

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

PropTypeDefaultDescription
titleReactNoderequiredMain text.
descriptionReactNodeA line under the title.
mediaReactNodeAn icon, avatar or thumbnail at the start.
actionsReactNodeButtons or a badge at the end.
hrefstringMakes the whole row a link; actions stay separate.
size"sm" | "md""md"Row padding.

View the source on GitHub