feat: split into multiple items

This commit is contained in:
vas3k
2025-05-23 14:33:40 +02:00
parent 289b436236
commit 25c61f0519
17 changed files with 332 additions and 57 deletions

View File

@@ -1,5 +1,16 @@
import { cn } from "@/lib/utils"
import { AlertCircle } from "lucide-react"
export function FormError({ children, className }: { children: React.ReactNode; className?: string }) {
return <p className={cn("text-red-500 mt-4 overflow-hidden", className)}>{children}</p>
return (
<div
className={cn(
"inline-flex items-center gap-2 px-3 py-2 rounded-md bg-red-50 text-red-700 border border-red-200",
className
)}
>
<AlertCircle className="w-4 h-4 flex-shrink-0" />
<p className="text-sm">{children}</p>
</div>
)
}