Item

A flexible component designed to showcase any type of content.

@radix-ui/react-slot

class-variance-authority

lucide-react

The Item component serves as a flexible container for arranging various types of content. It’s ideal for presenting titles, descriptions, and related actions. Combine multiple items using the ItemGroup component to form structured lists.

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/item.json

Examples


Size

The Item component provides multiple size options to fit various layouts. Use the default size for standard sections or the sm size for compact lists and tighter spaces.

Variant

The Item component offers multiple visual variants for different design needs. Use the default for a clean look, outline for bordered layouts, or muted to highlight important content with a subtle background.

Avatar

Group


API Reference

Item

PropTypeDefault
variantdefault,outline,secondarydefault
sizedefault,smdefault
asChildbooleanfalse

ItemMedia

PropTypeDefault
variantdefault,icon,imagedefault