You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/vue/README.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,7 @@ useAdhesive(
77
77
offset: 20,
78
78
enabled: enabled.value,
79
79
zIndex: 999,
80
+
initialClassName: 'custom-initial',
80
81
fixedClassName: 'custom-fixed',
81
82
relativeClassName: 'custom-relative'
82
83
})
@@ -117,6 +118,7 @@ import { ref } from 'vue';
117
118
const adhesiveOptions = ref({
118
119
offset: 20,
119
120
zIndex: 999,
121
+
initialClassName: 'custom-initial',
120
122
fixedClassName: 'custom-fixed',
121
123
relativeClassName: 'custom-relative'
122
124
});
@@ -196,7 +198,7 @@ A simple wrapper component that automatically applies sticky positioning to its
196
198
- All props from `UseAdhesiveOptions` (see below)
197
199
198
200
> [!NOTE]
199
-
> Class props like `outerClassName`, `innerClassName`, `fixedClassName`, and `relativeClassName` become `outerClass`, `innerClass`, `fixedClass`, and `relativeClass` in Vue for brevity.
201
+
> Class props like `outerClassName`, `innerClassName`, `initialClassName`, `fixedClassName`, and `relativeClassName` become `outerClass`, `innerClass`, `initialClass`, `fixedClass`, and `relativeClass` in Vue for brevity.
200
202
201
203
```vue
202
204
<AdhesiveContainer
@@ -229,8 +231,9 @@ For more control over the sticky behavior with full Vue reactivity support.
229
231
|`enabled`|`boolean`|`true`| Whether to enable sticky behavior |
230
232
|`outerClassName`|`string`|`'adhesive__outer'`| Class for the outer wrapper |
231
233
|`innerClassName`|`string`|`'adhesive__inner'`| Class for the inner wrapper |
234
+
|`initialClassName`|`string`|`'adhesive--initial'`| Class when element is in its initial state |
232
235
|`fixedClassName`|`string`|`'adhesive--fixed'`| Class when element is sticky |
233
-
|`relativeClassName`|`string`|`'adhesive--relative'`| Class when element returns to normal|
236
+
|`relativeClassName`|`string`|`'adhesive--relative'`| Class when element reaches its boundary|
0 commit comments