shadcn

Item

Cards 1

About

Here is Item component

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 { ChevronRightIcon, ExternalLinkIcon } from "lucide-react"

import {
  Item,
  ItemActions,
  ItemContent,
  ItemDescription,
  ItemTitle,
} from "@/components/ui/item"

export default function ItemLink() {
  return (
    <div className="flex w-full max-w-md flex-col gap-4">
      <Item asChild>
        <a href="#">
          <ItemContent>
            <ItemTitle>Visit our documentation</ItemTitle>
            <ItemDescription>
              Learn how to get started with our components.
            </ItemDescription>
          </ItemContent>
          <ItemActions>
            <ChevronRightIcon className="size-4" />
          </ItemActions>
        </a>
      </Item>
      <Item variant="outline" asChild>
        <a href="#" target="_blank" rel="noopener noreferrer">
          <ItemContent>
            <ItemTitle>External resource</ItemTitle>
            <ItemDescription>
              Opens in a new tab with security attributes.
            </ItemDescription>
          </ItemContent>
          <ItemActions>
            <ExternalLinkIcon className="size-4" />
          </ItemActions>
        </a>
      </Item>
    </div>
  )
}

Dependencies

More by shadcn

View all
  • Navigation menu

    Navigation menu

    786
  • Calendar with time pressets

    Calendar with time pressets

    516
  • Sidebar

    Sidebar

    350
  • Sonner

    Sonner

    238
  • Chart

    Chart

    221
  • Icons

    Icons

    195
  • Dropdown Menu

    Dropdown Menu

    154
  • Calendar with event slots

    Calendar with event slots

    123

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.1K
  • Card Studio

    Card Studio

    14
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    291
  • Statistics Card 2

    Statistics Card 2

    281
  • Statistics Card 10

    Statistics Card 10

    274
  • Stats cards with links

    Stats cards with links

    125
  • Weather Card

    Weather Card

    60
  • Streak Badge

    Streak Badge

    303