About
A flexible flex container for displaying content with media, a title, a description and actions, used to build lists of people, notifications, links or settings rows.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Item to your project and fits it to your theme.
Code
How Item is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import {
Item,
ItemContent,
ItemDescription,
ItemMedia,
ItemTitle,
} from "@/components/ui/item";
import { InboxIcon } from "lucide-react";
export default function ItemVariant() {
return (
<div dir="rtl" className="flex w-full max-w-md flex-col gap-6">
<Item>
<ItemMedia variant="icon">
<InboxIcon />
</ItemMedia>
<ItemContent>
<ItemTitle>واریانت پیشفرض</ItemTitle>
<ItemDescription>پسزمینه شفاف بدون حاشیه.</ItemDescription>
</ItemContent>
</Item>
<Item variant="outline">
<ItemMedia variant="icon">
<InboxIcon />
</ItemMedia>
<ItemContent>
<ItemTitle>واریانت حاشیه</ItemTitle>
<ItemDescription>استایل حاشیهدار با مرز مشخص.</ItemDescription>
</ItemContent>
</Item>
<Item variant="muted">
<ItemMedia variant="icon">
<InboxIcon />
</ItemMedia>
<ItemContent>
<ItemTitle>واریانت کمرنگ</ItemTitle>
<ItemDescription>
پسزمینهٔ کمرنگ برای محتوای ثانویه.
</ItemDescription>
</ItemContent>
</Item>
</div>
);
}







