mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-19 18:00:15 +01:00
* 🔧 refactor: Improve Error Handling and UI Consistency in Auth Components * 🔧 refactor: Email Templates * 🔧 refactor: Enhance LoginForm with loading state and spinner * 🔧 refactor: Replace button elements with Button component and enhance UI consistency across Auth forms
9 lines
324 B
TypeScript
9 lines
324 B
TypeScript
export const ErrorMessage = ({ children }: { children: React.ReactNode }) => (
|
|
<div
|
|
role="alert"
|
|
aria-live="assertive"
|
|
className="relative mt-6 rounded-xl border border-red-500/20 bg-red-50/50 px-6 py-4 text-red-700 shadow-sm transition-all dark:bg-red-950/30 dark:text-red-100"
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|