mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +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 { Loader } from '../../../../../../../components/Loader';
|
||||
|
||||
export function ModelLoader() {
|
||||
const { progress } = useProgress();
|
||||
|
||||
return (
|
||||
<Html center position={[0, 1.5, 0]}>
|
||||
<Loader naked progress={progress / 100} />
|
||||
<Progress value={progress} style={{ width: 160 }} />
|
||||
</Html>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user