# Link Inline Demo

> Example usage of Link.

A shadcn/ui block from the [@mizzle](https://mizzle.saddy.me/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/mizzle/link-inline-demo).

- Page, with a live preview: https://shadcn.exchange/r/mizzle/link-inline-demo
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/mizzle/link-inline-demo-light-6a662e23acbc4f5a.png
- Registry item: https://mizzle.saddy.me/r/link-inline-demo.json
- Categories: primitives
- Listed: 2026-10-17, source last changed 2026-10-17

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/mizzle/link-inline-demo.json
```

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

## Dependencies

- Registry items: `@mizzle/link`

## Notes from the registry

Docs: https://mizzle.saddy.me/docs/primitives/link

## Files

### `registry/demos/primitives/link-inline-demo.tsx`

```tsx
import { Link } from "@/components/mizzle/primitives/link"

export default function LinkInlineDemo() {
  return (
    <p className="max-w-[38ch] text-[14px] leading-[1.65] text-foreground">
      The underline is drawn on the text itself, so{" "}
      <Link href="#wrap">
        a link long enough to wrap onto a second line keeps its underline
      </Link>{" "}
      on both. Prose links read better{" "}
      <Link href="#solid" variant="solid">
        already underlined
      </Link>
      , and a link to <Link href="https://motion.dev">another site</Link> opens
      a new tab and says so.
    </p>
  )
}
```
