# As link

> render prop renders the badge as an anchor with a trailing icon.

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

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

## Install

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

## Files

### `registry/patterns/badge/badge-07.tsx`

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

import { Badge } from '@/components/ui/badge'

export function Badge07() {
  return (
    <Badge variant="secondary" render={<a href="#" />}>
      What&apos;s new
      <ArrowUpRightIcon data-icon="inline-end" />
    </Badge>
  )
}
```
