feat(ui): port dashboard components to react
This commit is contained in:
parent
a71d66b1b8
commit
73abcc1b69
33 changed files with 1304 additions and 182 deletions
14
src/lib/ui/components/StatusBadge.tsx
Normal file
14
src/lib/ui/components/StatusBadge.tsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import type { UiSeverity } from "../types";
|
||||
|
||||
export interface StatusBadgeProps {
|
||||
label: string;
|
||||
severity?: UiSeverity;
|
||||
}
|
||||
|
||||
export function StatusBadge({ label, severity = "neutral" }: StatusBadgeProps) {
|
||||
return (
|
||||
<span className="status-badge" data-severity={severity}>
|
||||
{label}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue