mirror of
https://github.com/marcogll/TaxHacker_s23.git
synced 2026-01-13 21:35:19 +00:00
feat: split into multiple items
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user