@m13v/seo-components 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/Particles.tsx +12 -2
package/package.json
CHANGED
|
@@ -9,8 +9,18 @@ import React, { useEffect, useRef, useState } from "react";
|
|
|
9
9
|
* at mount (falling back to teal #14b8a6). Canvas paint cannot use CSS
|
|
10
10
|
* vars directly, so we resolve it once via getComputedStyle.
|
|
11
11
|
*
|
|
12
|
+
* Defaults to `absolute inset-0 pointer-events-none` so it sits as an
|
|
13
|
+
* ambient layer behind its `position: relative` parent (e.g. a hero
|
|
14
|
+
* card). Callers who need a non-default layout can pass `className` to
|
|
15
|
+
* override. Prior to 0.28.1 the default was an empty string, which made
|
|
16
|
+
* the canvas render in-flow and consume 500-700px of hero vertical
|
|
17
|
+
* space, pushing the real hero content off-screen.
|
|
18
|
+
*
|
|
12
19
|
* @example
|
|
13
|
-
* <
|
|
20
|
+
* <div className="relative">
|
|
21
|
+
* <Particles quantity={80} />
|
|
22
|
+
* <h1>Hero content on top</h1>
|
|
23
|
+
* </div>
|
|
14
24
|
*/
|
|
15
25
|
|
|
16
26
|
interface MousePosition {
|
|
@@ -90,7 +100,7 @@ type Circle = {
|
|
|
90
100
|
};
|
|
91
101
|
|
|
92
102
|
export function Particles({
|
|
93
|
-
className = "",
|
|
103
|
+
className = "absolute inset-0 pointer-events-none",
|
|
94
104
|
quantity = 100,
|
|
95
105
|
staticity = 50,
|
|
96
106
|
ease = 50,
|