@auto-skeleton/react 0.0.4 → 0.0.5
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/README.md +18 -2
- package/dist/index.cjs +1 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
[](https://github.com/riazzahmedm/react-auto-skeleton/issues)
|
|
7
7
|
[](https://github.com/riazzahmedm/react-auto-skeleton/blob/main/LICENSE)
|
|
8
8
|
|
|
9
|
-
Zero-config skeleton loaders for React.
|
|
9
|
+
Zero-config skeleton loaders for React. Wrap any component — auto-skeleton scans the live DOM at runtime and generates a pixel-accurate skeleton. No CLI, no build step, no JSON files to maintain.
|
|
10
10
|
|
|
11
11
|
**[Live demo →](https://riazzahmedm.github.io/react-auto-skeleton/)**
|
|
12
12
|
|
|
@@ -16,7 +16,23 @@ Zero-config skeleton loaders for React. Wraps any component and auto-generates a
|
|
|
16
16
|
</AutoSkeleton>
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
That's it. No shape definitions, no extra config.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Why auto-skeleton
|
|
24
|
+
|
|
25
|
+
Most skeleton libraries make you define shapes manually — rectangles, circles, line counts — by hand. Others require a CLI build step to snapshot your UI into a static file you have to keep in sync.
|
|
26
|
+
|
|
27
|
+
auto-skeleton does neither. It measures your real rendered DOM with `getBoundingClientRect` at runtime, so skeletons are always accurate and always up to date — even as your layout changes.
|
|
28
|
+
|
|
29
|
+
| | auto-skeleton | Manual shapes | CLI snapshot tools |
|
|
30
|
+
|---|:---:|:---:|:---:|
|
|
31
|
+
| Zero config | ✅ | ❌ | ✅ |
|
|
32
|
+
| No build step | ✅ | ✅ | ❌ |
|
|
33
|
+
| Always in sync with layout | ✅ | ❌ | ❌ |
|
|
34
|
+
| Adapts to dynamic content | ✅ | ❌ | ❌ |
|
|
35
|
+
| Cached for instant re-loads | ✅ | — | ✅ |
|
|
20
36
|
|
|
21
37
|
---
|
|
22
38
|
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@auto-skeleton/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"main": "dist/index.cjs",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"react-dom": ">=18"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@auto-skeleton/core": "0.0.
|
|
32
|
+
"@auto-skeleton/core": "0.0.5"
|
|
33
33
|
}
|
|
34
34
|
}
|