mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 17:48:30 -04:00
18 lines
333 B
TypeScript
18 lines
333 B
TypeScript
import styles from "./SkipNav.module.css";
|
|
|
|
const skipNavId = "skip-nav";
|
|
|
|
export const SkipNavLink = () => {
|
|
return (
|
|
<a href={`#${skipNavId}`} tabIndex={0} className={styles.hidden}>
|
|
Skip to content
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export const SkipNavTarget = () => {
|
|
return <div id={skipNavId} />;
|
|
};
|
|
|
|
export default SkipNavLink;
|