Getting started
Components
currentPage
<InPageNavigationItem>
aria-current="page"
Use Horizontal In Page Navigation in most cases.
Use full-width In Page Navigation to fit the width of a containing element. Each item will expand equally to the same width. The full-width variant is recommended for compact spaces.
Use Vertical In Page Navigation when creating a second layer of hierarchy underneath a horizontal or full-width In Page Navigation.
Place this vertical In Page Navigation on the left side of the page, and wrap it in a Box with a right margin of space-110.
space-110
Don't add interactive elements to an In Page Navigation item since it makes it difficult for users of assistive technologies to focus or click on an item.
In Page Navigation labels should be short to improve readability. Users should be able to easily scan the items and know what type of content to expect. Try to keep labels to 1-2 words each.
Labels should be parallel parts of speech. For example, all nouns (Documents, Images, Downloads).
Use In Page Navigation for navigating users to different but related pages, such as different pages of settings.
Don't use In Page Navigation when swapping between views on the same page. Use Tabs instead.
Keep In Page Navigation labels concise.
Don't use more than 2 words in an In Page Navigation label, unless absolutely necessary.
Help us improve this component by providing feedback, asking questions on Slack, or updating this file on GitHub.