morphing-scroll 2.5.3 → 2.6.0

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.
@@ -1,8 +1,8 @@
1
1
  type ResizeTrackerT = {
2
2
  /**---
3
- * ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
4
- * Custom class name.
5
- * ___
3
+ * ## ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
4
+ * ### ***className***:
5
+ * set a custom class name.
6
6
  * @example
7
7
  * ```tsx
8
8
  * <ResizeTracker
@@ -14,9 +14,9 @@ type ResizeTrackerT = {
14
14
  */
15
15
  className?: string;
16
16
  /**---
17
- * ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
18
- * Custom user content.
19
- * ___
17
+ * ## ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
18
+ * ### ***children***:
19
+ * add custom user content.
20
20
  * @example
21
21
  * ```tsx
22
22
  * <ResizeTracker>
@@ -26,9 +26,9 @@ type ResizeTrackerT = {
26
26
  * */
27
27
  children: React.ReactNode;
28
28
  /**---
29
- * ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
30
- * Custom inline styles.
31
- * ___
29
+ * ## ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
30
+ * ### ***style***:
31
+ * set custom inline styles.
32
32
  * @example
33
33
  * ```tsx
34
34
  * <ResizeTracker
@@ -40,16 +40,14 @@ type ResizeTrackerT = {
40
40
  */
41
41
  style?: React.CSSProperties;
42
42
  /**---
43
- * ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
44
- * Defines size measurement behavior.
45
- * ___
43
+ * ## ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
44
+ * ### ***measure***:
45
+ * defines size measurement behavior.
46
46
  * @description
47
47
  * - `inner`: *Fits content*
48
48
  * - `outer`: *Fills parent*
49
49
  * - `all`: *Combines both*
50
- *
51
50
  * @default "inner"
52
- *
53
51
  * @example
54
52
  * ```tsx
55
53
  * <ResizeTracker
@@ -61,16 +59,14 @@ type ResizeTrackerT = {
61
59
  */
62
60
  measure?: "inner" | "outer" | "all";
63
61
  /**---
64
- * ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
65
- * Callback on dimension change.
66
- * ___
67
- * @description
68
- * *`rect` is the dimensions of the container*
69
- *
62
+ * ## ![logo](https://github.com/voodoofugu/morphing-scroll/raw/main/src/assets/morphing-scroll-logo.png)
63
+ * ### ***onResize***:
64
+ * callback on dimension change.
65
+ * @param rect is the dimensions of the container.
70
66
  * @example
71
67
  * ```tsx
72
68
  * <ResizeTracker
73
- * onResize={(rect) => console.log(rect)}
69
+ * onResize={(rect) => console.log("Resized:", rect)}
74
70
  * >
75
71
  * {children}
76
72
  * </ResizeTracker>