Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Item examples · Interactive

Item as Link for React

Two items rendered as links: one to a docs page, one to an external resource that opens in a new tab.

Framework
UI library

When a whole row leads somewhere, the row itself should be the link. This React example renders two Items as anchors: a plain one with a chevron for a page on your site, and an outline one with an external-link icon that opens in a new tab with rel="noopener noreferrer". The anchor gets the Item's classes, so the row keeps its layout, gains a muted hover background and shows a focus ring when tabbed to.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

FAQ