Skip to content

Commit f91927b

Browse files
author
Saiya
committed
docs: update
1 parent 4c91d1f commit f91927b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function Example() {
7474
### `<StickyItem />`
7575
| Prop | Type | Default | Description |
7676
|---------|--------------------------------------|---------|---------------------------------------------|
77-
| `mode` | `'replace' \| 'stack' \| 'none'` | | Sticky mode for this item (overrides group) |
77+
| `mode` | `'replace' \| 'stack' \| 'none'` | | Sticky mode for this item (overrides StickyContainer) |
7878

7979
## Sticky Modes
8080
- **replace**: Only one sticky item is visible at a time, replacing the previous.

src/sticky-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { type IStickyMode, type IStickyItemHandle, useStickyContext, MIN_BASE_Z_
44
export interface IStickyItemProps extends React.HTMLAttributes<HTMLDivElement> {
55
children: React.ReactNode;
66
/**
7-
* Sticky mode for this item. Defaults to the group's mode if not specified.
7+
* Sticky mode for this item. Defaults to the StickyContainer's mode if not specified.
88
*/
99
mode?: IStickyMode
1010
}

0 commit comments

Comments
 (0)