Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fc5748 commit 5353da2Copy full SHA for 5353da2
site/src/components/Spinner/Spinner.tsx
@@ -4,6 +4,7 @@
4
* https://v0.dev/ help.
5
*/
6
7
+import isChromatic from "chromatic/*";
8
import { cva, type VariantProps } from "class-variance-authority";
9
import type { ReactNode } from "react";
10
import { cn } from "utils/cn";
@@ -61,7 +62,9 @@ export function Spinner({
61
62
height="4"
63
rx="0.5"
64
// 0.8 = leaves * 0.1
- className="animate-[loading_0.8s_ease-in-out_infinite]"
65
+ className={
66
+ isChromatic() ? "" : "animate-[loading_0.8s_ease-in-out_infinite]"
67
+ }
68
style={{
69
transform: `rotate(${rotation}deg)`,
70
transformOrigin: "center",
0 commit comments