# User message notification alert

> User message notification alert

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

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

## Files

### `c-alert-20.tsx`

```tsx
import {
  Alert,
  AlertAction,
  AlertDescription,
  AlertTitle,
} from "@/components/reui/alert"
import { Frame, FramePanel } from "@/components/reui/frame"

import {
  Avatar,
  AvatarFallback,
  AvatarImage,
} from "@/components/ui/avatar"
import { Button } from "@/components/ui/button"

export function Pattern() {
  return (
    <div className="mx-auto mb-auto w-full max-w-lg">
      <Frame>
        <FramePanel className="overflow-hidden p-0!">
          <Alert
            variant="invert"
            className="grid-cols-[32px_1fr] gap-x-3 border-0 shadow-none"
          >
            <Avatar className="border-border/10 size-8 border">
              <AvatarImage
                src="https://images.unsplash.com/photo-1519699047748-de8e457a634e?w=96&h=96&dpr=2&q=80"
                alt="Sarah Chen"
              />
              <AvatarFallback>SC</AvatarFallback>
            </Avatar>
            <AlertTitle className="flex items-center gap-2">
              <span className="truncate">Sarah Chen</span>
              <span className="text-invert-foreground/60 truncate font-normal">
                mentioned you in a comment
              </span>
            </AlertTitle>
            <AlertAction>
              <Button
                variant="outline"
                size="xs"
                className="bg-background/10 border-border/10"
              >
                Dismiss
              </Button>
              <Button
                size="xs"
                className="border-blue-800 bg-blue-500 text-white hover:border-blue-900 hover:bg-blue-600"
              >
                View
              </Button>
            </AlertAction>
            <AlertDescription className="text-invert-foreground/70 line-clamp-1">
              &quot;Great work on the user profile layout! I&apos;ve added some
              suggestions for the avatar spacing.&quot;
            </AlertDescription>
          </Alert>
        </FramePanel>
      </Frame>
    </div>
  )
}
```
