Initialize League GUI prototype
All checks were successful
Release Dry Run / release-dry-run (push) Successful in 12s
Codex Template Compliance / template-compliance (push) Successful in 6s

This commit is contained in:
ToxicCrzay270
2026-05-15 00:41:38 +02:00
commit 45b96ec20f
62 changed files with 5924 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
export type ToastVariant = "info" | "success" | "warning";
type ToastProps = {
title: string;
message: string;
variant?: ToastVariant;
onDismiss?: () => void;
};
export function Toast({ title, message, variant = "info", onDismiss }: ToastProps) {
return (
<aside className={`ui-toast ui-toast-${variant}`} role="status">
<div>
<strong>{title}</strong>
<span>{message}</span>
</div>
{onDismiss && (
<button className="toast-dismiss" type="button" onClick={onDismiss} aria-label={`Dismiss ${title}`}>
x
</button>
)}
</aside>
);
}