useSuchi()
Suchi provides simple APIs to access SuchiContext values, making it easy to create a custom Table of Contents that leverages Suchi's automatic composition.
You must use useSuchi
within the Suchi.Root scope to access useSuchi values
Sections and ActiveSection
sections is an array of all the Section created inside the Root.
activeSection holds the title of the current Section in the view.
Scrolling
When navigating to a section using the Index Item, Suchi maintains a scrolling
state to temporarily defer the IntersectionObserver during the scroll.
References
references is an array of all the References created inside the Root.