# Input Group Buttons 2 - Multiple action buttons

> Multiple Action Buttons.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/input-group-input-group-buttons-2).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/input-group-input-group-buttons-2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/input-group-input-group-buttons-2-light-05644235a77f5fa7.png
- Registry item: https://shadcnblocks.com/r/input-group-input-group-buttons-2.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/input-group-input-group-buttons-2.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: `input-group`

## Files

### `example/input-group/input-group-buttons-2.tsx`

```tsx
"use client";

import { HeartIcon, InfoIcon } from "lucide-react";
import { useState } from "react";

import {
  InputGroup,
  InputGroupAddon,
  InputGroupButton,
  InputGroupInput,
} from "@/components/ui/input-group";

export const title = "Multiple Action Buttons";

const Example = () => {
  const [favorited, setFavorited] = useState(false);

  return (
    <InputGroup className="w-full max-w-sm bg-background">
      <InputGroupInput placeholder="https://github.com/shadcn" readOnly />
      <InputGroupAddon align="inline-end">
        <InputGroupButton aria-label="Info" size="icon-xs" variant="ghost">
          <InfoIcon />
        </InputGroupButton>
      </InputGroupAddon>
      <InputGroupAddon align="inline-end">
        <InputGroupButton
          aria-label="Favorite"
          onClick={() => setFavorited(!favorited)}
          size="icon-xs"
          variant="ghost"
        >
          <HeartIcon className={favorited ? "fill-current" : ""} />
        </InputGroupButton>
      </InputGroupAddon>
    </InputGroup>
  );
};

export default Example;
```
