c-alert-20.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">
"Great work on the user profile layout! I've added some
suggestions for the avatar spacing."
</AlertDescription>
</Alert>
</FramePanel>
</Frame>
</div>
)
}































