# Toggle buttons in different sizes.

> Toggle buttons in different sizes.

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-toggle-3).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-toggle-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-toggle-3-light-2947908cfcfe7494.png
- Registry item: https://reui.io/r/new-york-v4/c-toggle-3.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-toggle-3.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: `toggle`

## Files

### `c-toggle-3.tsx`

```tsx
import { Toggle } from "@/components/ui/toggle"

export function Pattern() {
  return (
    <div className="flex flex-wrap items-center justify-center gap-2">
      <Toggle variant="outline" size="sm" aria-label="Small toggle">
        Small
      </Toggle>
      <Toggle variant="outline" size="default" aria-label="Default toggle">
        Default
      </Toggle>
      <Toggle variant="outline" size="lg" aria-label="Large toggle">
        Large
      </Toggle>
    </div>
  )
}
```
