Components
Compact red-tinted error card with optional title and message body. Self-contained port from 21st.dev Agent Elements.
npx shadcn@latest add https://21st.dev/r/21stdev/error-messageLoading preview...
import { ErrorMessage } from "@/components/ui/error-message";
export default function RateLimitDemo() {
return (
<div className="min-h-screen w-full flex items-center justify-center p-6 bg-white dark:bg-neutral-950">
<div className="w-full max-w-md">
<ErrorMessage
title="Rate limit reached"
message="You've sent too many messages in a short period. Please wait a moment before continuing."
/>
</div>
</div>
);
}