# Item Interactive 1 - As link

> Item as Link.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/item-item-interactive-1).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/item-item-interactive-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/item-item-interactive-1-light-00e48262e6400ff7.png
- Registry item: https://shadcnblocks.com/r/item-item-interactive-1.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/item-item-interactive-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `lucide-react`
- Registry items: `item`

## Files

### `example/item/item-interactive-1.tsx`

```tsx
import { ChevronRightIcon, ExternalLinkIcon } from "lucide-react";

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

export const title = "Item as Link";

const Example = () => (
  <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 asChild className="bg-background" variant="outline">
      <a href="#" rel="noopener noreferrer" target="_blank">
        <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>
);

export default Example;
```
