# As link

> Link-styled button that navigates to an external URL, rendered as an anchor with a trailing external-link icon.

A shadcn/ui block from the [@flx](https://ui.flexnative.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/flx/button-09).

- Page, with a live preview: https://shadcn.exchange/r/flx/button-09
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/flx/button-09-light-51af599602925060.png
- Registry item: https://ui.flexnative.com/r/button-09.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://ui.flexnative.com/r/button-09.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: `button`

## Files

### `registry/patterns/button/button-09.tsx`

```tsx
import { ExternalLinkIcon } from 'lucide-react'

import { buttonVariants } from '@/components/ui/button'
import { cn } from '@/lib/utils'

export function Button09() {
  return (
    <a
      href="https://ui.shadcn.com"
      target="_blank"
      rel="noreferrer"
      className={cn(buttonVariants({ variant: 'link' }))}
    >
      Read the docs
      <ExternalLinkIcon data-icon="inline-end" />
    </a>
  )
}
```
