Skip to content

Conversation

@johnleider
Copy link
Member

…ering

Combines useIntersectionObserver + createSelection + useProxyRegistry to provide:

  • LazyRoot: detects viewport intersection, manages selection via events
  • LazyPlaceholder: shows before intersection
  • LazyContent: shows after intersection

Supports eager mode and IntersectionObserver options (rootMargin, threshold).

…ering

Combines useIntersectionObserver + createSelection + useProxyRegistry to provide:
- LazyRoot: detects viewport intersection, manages selection via events
- LazyPlaceholder: shows before intersection
- LazyContent: shows after intersection

Supports eager mode and IntersectionObserver options (rootMargin, threshold).
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 16, 2026

Open in StackBlitz

commit: 6939766

- Use toRef() instead of computed() for slot props (consistency)
- Normalize slot prop naming (isVisible → hasContent)
- Expose reset/onAfterLeave in LazyRoot slot props
- Export LazyContext type from barrel
- Simplify LazyRootContext to type alias
- Add accessibility attributes to docs example
- Add comprehensive component tests (31 tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants