@agney/skip-nav
TypeScript icon, indicating that this package has built-in type declarations

0.18.0 • Public • Published

@agney/skip-nav

Stable release MIT license

Docs | Source | WAI-ARIA

Skip navigation link for screen reader and keyboard users. Because the main content is not usually the first thing in the document, it's valuable to provide a shortcut for keyboard and screen reader users to skip to the content.

If the user does not navigate with the keyboard, they won't see the link.

import { SkipNavLink, SkipNavContent } from "@agney/skip-nav";
import "@agney/skip-nav/styles.css";

ReactDOM.return(
	<React.Fragment>
		{/* put the link at the top of your app */}
		<SkipNavLink />
		<div>
			<YourNav />
			{/* and the content next to your main content */}
			<SkipNavContent />
			<YourMainContent />
		</div>
	</React.Fragment>,
	rootNode
);

Dependencies (1)

Dev Dependencies (6)

Package Sidebar

Install

npm i @agney/skip-nav

Weekly Downloads

1

Version

0.18.0

License

MIT

Unpacked Size

18.3 kB

Total Files

12

Last publish

Collaborators

  • agney