File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ import MuiCircularProgress from "@mui/material/CircularProgress" ;
2+
3+ import { type ComponentState } from "@/lib/types/state/component" ;
4+ import type { ComponentProps } from "@/lib/component/Component" ;
5+
6+ interface CircularProgressState extends ComponentState {
7+ size ?: number | string ;
8+ value ?: number ;
9+ variant ?: "determinate" | "indeterminate" ;
10+ }
11+
12+ interface CircularProgressProps extends ComponentProps , CircularProgressState { }
13+
14+ export function CircularProgress ( {
15+ id,
16+ style,
17+ size,
18+ value,
19+ variant,
20+ } : CircularProgressProps ) {
21+ return (
22+ < MuiCircularProgress
23+ id = { id }
24+ style = { style }
25+ size = { size }
26+ value = { value }
27+ variant = { variant }
28+ />
29+ ) ;
30+ }
Original file line number Diff line number Diff line change @@ -40,13 +40,15 @@ import { registry } from "@/lib/component/Registry";
4040import { Box } from "@/lib/components/Box" ;
4141import { Button } from "@/lib/components/Button" ;
4242import { Checkbox } from "@/lib/components/Checkbox" ;
43+ import { CircularProgress } from "@/lib/components/CircularProgress" ;
4344import { Plot } from "@/lib/components/Plot" ;
4445import { Select } from "@/lib/components/Select" ;
4546import { Typography } from "@/lib/components/Typography" ;
4647
4748registry . register ( Box ) ;
4849registry . register ( Button ) ;
4950registry . register ( Checkbox ) ;
51+ registry . register ( CircularProgress ) ;
5052registry . register ( Plot ) ;
5153registry . register ( Select ) ;
5254registry . register ( Typography ) ;
You can’t perform that action at this time.
0 commit comments