Files
authentik/website/docusaurus-theme/components/Glossary/AlphaNav.tsx
Dominic R 96eb8dda0f website: Glossary (#16007)
* website: Glossary

fix minor issues

wip

Apply suggestion from @dominic-r

Signed-off-by: Dominic R <dominic@sdko.org>

anchor to param

wip

wip

at least the lockfile changes now

sure

a-z first as tana asked

idk why i switched in the first place

wip

wip

lock

lockfiles are hard

wip

please work

no have?

Revert "no have?"

This reverts commit 743dbc1bc2900eedcc2c93af248e6afdec3688a3.

* changed to sentence-case capitalization

---------

Co-authored-by: Tana M Berry <tana@goauthentik.io>
2025-12-02 21:36:51 -05:00

24 lines
628 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import styles from "./styles.module.css";
import React from "react";
/** AZ navigation anchors for simplified view. */
export interface AlphaNavProps {
letters: string[];
}
export const AlphaNav: React.FC<AlphaNavProps> = ({ letters }) => {
if (letters.length === 0) return null;
return (
<nav className={styles.alphaNav} aria-label="A to Z navigation">
{letters.map((letter) => (
<a key={letter} href={`#letter-${letter}`} className={styles.alphaNavLink}>
{letter}
</a>
))}
</nav>
);
};
export default AlphaNav;