# Alert Error 3 - Error with Title and Action

> Error alert with title and action buttons.

A shadcn/ui block from the [@shadcnblocks](https://shadcnblocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcnblocks/alert-alert-error-3).

- Page, with a live preview: https://shadcn.exchange/r/shadcnblocks/alert-alert-error-3
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcnblocks/alert-alert-error-3-light-34b44c823dbb7258.png
- Registry item: https://shadcnblocks.com/r/alert-alert-error-3.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://shadcnblocks.com/r/alert-alert-error-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: `alert`, `button`

## Files

### `example/alert/alert-error-3.tsx`

```tsx
import { Alert, AlertTitle } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";

export const title = "Error with Title and Action";

const Example = () => (
  <Alert className="w-full max-w-lg border-destructive/80 bg-destructive/5 text-destructive">
    <div className="col-span-2 flex items-center justify-between gap-4">
      <AlertTitle>Error</AlertTitle>
      <div className="flex shrink-0 gap-2">
        <Button size="sm" variant="destructive">
          Retry
        </Button>
        <Button size="sm" variant="outline">
          Dismiss
        </Button>
      </div>
    </div>
  </Alert>
);

export default Example;
```
