ReactVanillaLight & dark1.3K views
A profile dropdown led by an identity header for the signed-in account, with quick actions and soft key-chip shortcut hints, a What's new discovery item, a switch-account list of the other accounts with a hover switch arrow, a dark mode toggle row grouped above the error-weighted sign-out action — fully token-driven and design-system agnostic.
Get the code for free
Create a free account to copy or download the full source.
Dropdown Menu component
A profile dropdown led by an identity header for the signed-in account, with quick actions and soft key-chip shortcut hints, a What's new discovery item, a switch-account list of the other accounts with a hover switch arrow, a dark mode toggle row grouped above the error-weighted sign-out action — fully token-driven and design-system agnostic.
aria-haspopup="true", aria-expanded toggledrole="menu" on the action list, aria-label on the <nav>role="menuitem" with tabindex="-1"role="radiogroup" with aria-label, items have role="radio" and aria-checkedrole="switch" with aria-checked on the toggle row, kept in sync by updateThemeToggles(); the inner checkbox is aria-hidden so only one switch is exposedOpen Profile Dropdown Menu in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the dropdown menu is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
Starting at $9.9 per month, billed annually
Don't miss a beat with our newsletter!
BUILDER
ABOUT US
© 2026 Atheros Intelligence Ltd.
switchAccount() re-renders and returns focus to the selected account row:focus-visible with --ring outline on all interactive rowsprefers-reduced-motion: reduce disables all animationsaria-hidden; an sr-only "3 unread messages" carries it<kbd> per key, so the combination reads as one shortcut