@@ -135,18 +135,16 @@ For more control over the sticky behavior.
135135
136136** UseAdhesiveOptions:**
137137
138- | Option | Type | Default | Description |
139- | ------------------- | ---------------------------------------------- | ---------------------- | --------------------------------------------------------------- |
140- | ` boundingRef ` | ` React.RefObject ` \| ` HTMLElement ` \| ` string ` | ` document.body ` | The element that defines the sticky boundaries |
141- | ` boundingEl ` | ` HTMLElement ` \| ` string ` | ` document.body ` | Alternative way to specify bounding element (for compatibility) |
142- | ` position ` | ` 'top' \| 'bottom' ` | ` 'top' ` | Where the element should stick |
143- | ` offset ` | ` number ` | ` 0 ` | Offset in pixels from the position |
144- | ` zIndex ` | ` number ` \| ` string ` | ` 1 ` | Z-index for the fixed element |
145- | ` enabled ` | ` boolean ` | ` true ` | Whether to enable sticky behavior |
146- | ` outerClassName ` | ` string ` | ` 'adhesive__outer' ` | Class for the outer wrapper |
147- | ` innerClassName ` | ` string ` | ` 'adhesive__inner' ` | Class for the inner wrapper |
148- | ` initialClassName ` | ` string ` | ` 'adhesive--initial' ` | Class when element is in its initial state |
149- | ` fixedClassName ` | ` string ` | ` 'adhesive--fixed' ` | Class when element is sticky |
150- | ` relativeClassName ` | ` string ` | ` 'adhesive--relative' ` | Class when element reaches its boundary |
151-
152- > Note: ` zIndex ` also accepts a CSS variable string, e.g. ` "var(--adhesive-z)" ` .
138+ | Option | Type | Default | Description |
139+ | ------------------- | ---------------------------------------------- | ---------------------------- | --------------------------------------------------------------- |
140+ | ` boundingRef ` | ` React.RefObject ` \| ` HTMLElement ` \| ` string ` | ` document.body ` | The element that defines the sticky boundaries |
141+ | ` boundingEl ` | ` HTMLElement ` \| ` string ` | ` document.body ` | Alternative way to specify bounding element (for compatibility) |
142+ | ` position ` | ` 'top' \| 'bottom' ` | ` 'top' ` | Where the element should stick |
143+ | ` offset ` | ` number ` | ` 0 ` | Offset in pixels from the position |
144+ | ` zIndex ` | ` number ` \| ` string ` | ` var(--adhesive-z-index, 1) ` | Z-index for the fixed element |
145+ | ` enabled ` | ` boolean ` | ` true ` | Whether to enable sticky behavior |
146+ | ` outerClassName ` | ` string ` | ` 'adhesive__outer' ` | Class for the outer wrapper |
147+ | ` innerClassName ` | ` string ` | ` 'adhesive__inner' ` | Class for the inner wrapper |
148+ | ` initialClassName ` | ` string ` | ` 'adhesive--initial' ` | Class when element is in its initial state |
149+ | ` fixedClassName ` | ` string ` | ` 'adhesive--fixed' ` | Class when element is sticky |
150+ | ` relativeClassName ` | ` string ` | ` 'adhesive--relative' ` | Class when element reaches its boundary |
0 commit comments