# Icon only

> Square icon-only buttons in every icon size.

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

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

## Install

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

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

import { Button } from '@/components/ui/button'

export function Button06() {
  return (
    <div className="flex flex-wrap items-center gap-2">
      <Button size="icon-xs" variant="outline" aria-label="Settings">
        <SettingsIcon />
      </Button>
      <Button size="icon-sm" variant="outline" aria-label="Settings">
        <SettingsIcon />
      </Button>
      <Button size="icon" variant="outline" aria-label="Settings">
        <SettingsIcon />
      </Button>
      <Button size="icon-lg" variant="outline" aria-label="Settings">
        <SettingsIcon />
      </Button>
    </div>
  )
}
```
