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 47a9796 commit bdf125eCopy full SHA for bdf125e
README.md
@@ -52,6 +52,29 @@ or in your component
52
import "react-mouse-trail/dist/index.css";
53
```
54
55
+Here's a revised version of the usage section:
56
+
57
+## Usage
58
59
+MouseTrail is simple to integrate:
60
61
+```tsx
62
+import { MouseTrail } from "react-mouse-trail";
63
64
+export default function Layout() {
65
+ return (
66
+ <html lang="en" suppressHydrationWarning>
67
+ <body className={inter.className}>
68
+ {/* ... */}
69
+ <MouseTrail rgb={[1, 0, 0]} />
70
+ </body>
71
+ </html>
72
+ );
73
+}
74
+```
75
76
+By default, the RGB value `[1, 0, 0]` represents the color red.
77
78

79
80
## License
0 commit comments