mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: loading bar
This commit is contained in:
1 parent
a5b3177394
commit
c069d132c1
1 file changed
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
|
import { Progress } from '@radix-ui/themes';
|
||||||
import { Html, useProgress } from '@react-three/drei';
|
import { Html, useProgress } from '@react-three/drei';
|
||||||
import { Loader } from '../../../../../../../components/Loader';
|
|
||||||
|
|
||||||
export function ModelLoader() {
|
export function ModelLoader() {
|
||||||
const { progress } = useProgress();
|
const { progress } = useProgress();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Html center position={[0, 1.5, 0]}>
|
<Html center position={[0, 1.5, 0]}>
|
||||||
<Loader naked progress={progress / 100} />
|
<Progress value={progress} style={{ width: 160 }} />
|
||||||
</Html>
|
</Html>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user