Anchor nav

Use the anchor nav component for prompt navigation to different sections of a page.
  • Experimental
  • Not reviewed for accessibility
import {AnchorNav} from '@primer/react-brand'

Examples

AnchorNav is designed to fix to the top of the viewport, and requires markup outside of the scope of the component to behave correctly.

Please refer to our Storybook examples to see the component in a full-screen context as originally intended.

Basic