# Button group for editor text alignment controls

> Button group for editor text alignment controls

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

- Page, with a live preview: https://shadcn.exchange/r/reui/c-button-group-12
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-button-group-12-light-7f4f6c8f4ff68aca.png
- Registry item: https://reui.io/r/new-york-v4/c-button-group-12.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-button-group-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: `button`, `button-group`

## Files

### `c-button-group-12.tsx`

```tsx
import { Button } from "@/components/ui/button"
import { ButtonGroup } from "@/components/ui/button-group"
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"

export function Pattern() {
  return (
    <ButtonGroup>
      <Button variant="outline" size="icon-sm" aria-label="Align left">
        <IconPlaceholder
          lucide="AlignLeftIcon"
          tabler="IconAlignLeft"
          hugeicons="TextAlignLeftIcon"
          phosphor="TextAlignLeftIcon"
          remixicon="RiAlignLeft"
          aria-hidden="true"
        />
      </Button>
      <Button variant="outline" size="icon-sm" aria-label="Align center">
        <IconPlaceholder
          lucide="AlignCenterIcon"
          tabler="IconAlignCenter"
          hugeicons="TextAlignCenterIcon"
          phosphor="TextAlignCenterIcon"
          remixicon="RiAlignCenter"
          aria-hidden="true"
        />
      </Button>
      <Button variant="outline" size="icon-sm" aria-label="Align right">
        <IconPlaceholder
          lucide="AlignRightIcon"
          tabler="IconAlignRight"
          hugeicons="TextAlignRightIcon"
          phosphor="TextAlignRightIcon"
          remixicon="RiAlignRight"
          aria-hidden="true"
        />
      </Button>
      <Button variant="outline" size="icon-sm" aria-label="Align justify">
        <IconPlaceholder
          lucide="MenuIcon"
          tabler="IconMenu2"
          hugeicons="Menu01Icon"
          phosphor="ListIcon"
          remixicon="RiMenuLine"
          aria-hidden="true"
        />
      </Button>
    </ButtonGroup>
  )
}
```
