Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Shadcn Item for React and Tailwind

A versatile component for displaying content.

Basic Item

A simple item with title and description.

Your profile has been verified.

Installation

bunx --bun shadcn@latest add https://kit.dev/r/item.json

Usage

import { BadgeCheck, ChevronRight, Ellipsis } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemMedia,
  ItemTitle,
} from "@/components/ui/item";
<div className="flex w-full max-w-md flex-col gap-6">
  <Item variant="outline">
    <ItemContent>
      <ItemTitle>Basic Item</ItemTitle>
      <ItemDescription>
        A simple item with title and description.
      </ItemDescription>
    </ItemContent>
    <ItemActions>
      <Button size="icon-sm" variant="outline">
        <Ellipsis />
      </Button>
    </ItemActions>
  </Item>
  <Item variant="outline">
    <ItemMedia>
      <BadgeCheck className="size-5" />
    </ItemMedia>
    <ItemContent>
      <ItemTitle>Your profile has been verified.</ItemTitle>
    </ItemContent>
    <ItemActions>
      <ChevronRight className="size-4" />
    </ItemActions>
  </Item>
</div>

Accessibility

KeyDescription
Enter
Activate the focused control.
Space
Activate the focused control.

Demos

Avatar

Basic

Custom Spacing

Group

Icon

Image

Variant Default

Variant Muted

Variant Outline

API Reference

Item

div

PropType
AttributeType

ItemGroup

div

PropType
AttributeType

ItemSeparator

div

PropType
AttributeType
CSS variableType

ItemMedia

div

PropType
AttributeType

ItemContent

div

PropType
AttributeType

ItemTitle

div

PropType
AttributeType

ItemDescription

p

PropType
AttributeType

ItemActions

div

PropType
AttributeType

ItemHeader

div

PropType
AttributeType

ItemFooter

div

PropType
AttributeType