@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m13v/seo-components",
3
- "version": "0.28.0",
3
+ "version": "0.28.1",
4
4
  "scripts": {
5
5
  "build:css": "tailwind -i src/_build.css -o dist/styles.css --minify",
6
6
  "bump:consumers": "bash scripts/bump-consumers.sh",
@@ -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
- * <Particles className="absolute inset-0" quantity={80} />
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,