feat(mui): kit — Select, StatusChip, CheckboxField, Alert

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-06 21:20:30 +02:00
parent 5855c94b50
commit 05f25931c9
5 changed files with 119 additions and 0 deletions

19
src/admin/ui/Alert.tsx Normal file
View File

@@ -0,0 +1,19 @@
import type { ReactNode } from "react";
import MuiAlert from "@mui/material/Alert";
/** Inline contextual alert (form/section feedback) — distinct from the global toast. */
export default function Alert({
severity = "info",
children,
onClose,
}: {
severity?: "success" | "error" | "warning" | "info";
children: ReactNode;
onClose?: () => void;
}) {
return (
<MuiAlert severity={severity} onClose={onClose} sx={{ borderRadius: 2 }}>
{children}
</MuiAlert>
);
}