Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollSpy component #2132

Open
Xelson opened this issue Dec 23, 2024 · 0 comments
Open

ScrollSpy component #2132

Xelson opened this issue Dec 23, 2024 · 0 comments

Comments

@Xelson
Copy link

Xelson commented Dec 23, 2024

🚀 Feature request

Add a component to track the currently visible sections like On this page block on https://zagjs.com/ or https://ark-ui.com/

🧱 Problem Statement / Justification

There is no unified solution for creating components like TOC, the implementation approaches vary and the complexity is quite high: even on the above-mentioned sites, TOC does not work clearly and reliably enough.

✅ Proposed solution or API

the component may consist of ScrollSpy.Root and ScrollSpy.Section parts, we may need more parts to support nesting.
my react version in ark style

↩️ Alternatives

bootstrap
mantine TOC

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

No branches or pull requests

1 participant