Quick Nav

The quick nav component allows navigation inside a page. It renders the links according to the headings of the content in order to navigate to each section. The navigation is done using the link label or the link label plus sublink label when it is a sublink. If there is any space, it will be replaced by '-'.

Props

NameTypeDescriptionDefault
titlestringTitle of the quick nav component.-
links{ label: string; links?: Link[]; }[]Links of the quick nav component. Only first and second level links will be shown in the quick nav, due to design restrictions. Each link has the following properties:
  • label: Text to be shown in the link. The content must be wrapped with an id equal to the slugified label (in lower case and the white spaces replaced by '-') in order to be able to navigate to the section that the label references.
  • links: Sublinks of the link.
-

Examples

Basic usage

With content