# Icon only

> Round icon-only badges across variants.

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

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

## Install

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

```tsx
import { CheckIcon, StarIcon, ZapIcon } from 'lucide-react'

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

export function Badge12() {
  return (
    <div className="flex flex-wrap items-center gap-2">
      <Badge className="size-5 rounded-full p-0">
        <CheckIcon />
      </Badge>
      <Badge variant="secondary" className="size-5 rounded-full p-0">
        <StarIcon />
      </Badge>
      <Badge variant="outline" className="size-5 rounded-full p-0">
        <ZapIcon />
      </Badge>
    </div>
  )
}
```
