Anatomy
Index
Index renders the Table of Contents (Index).
Index is required to display the Table of Contents.
Each section in Suchi generates an index item, with the item's text derived from the SectionHeader.
Index Items are created from the Section Headers
Mastering React Hooks
Introduction
Introduction
Getting Started
Getting Started
Advanced Techniques
Advanced Techniques
Props
Prop | Type | Default |
---|---|---|
hotKey | string | / |
desktop | boolean | - |
mobile | boolean | - |
Example:
Sample Usage
Accessibility
The default hotKey to toggle the Index is Cmd + /
or Ctrl + /
The Index component can be easily accessed on desktop devices by pressing Cmd + /
or Ctrl + /
. You can also use a custom hotKey using the hotKey
prop.
Additionally, users can navigate through the index items using the Arrow Up
or Arrow Down
keys.
Using keyboard to navigate Suchi on larger screens