How dropdown and options menus must look and behave in the Nyxs app (src/). Use whenever adding or changing a menu, a "⋯" options button, a submenu, a filter or sort menu, a row's context menu, or the icons on such buttons.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Nyxs Menus?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nyxs-code-nyxs-menus)
---
name: nyxs-menus
description: How dropdown and options menus must look and behave in the Nyxs app (src/). Use whenever adding or changing a menu, a "⋯" options button, a submenu, a filter or sort menu, a row's context menu, or the icons on such buttons.
---
# Menus in Nyxs
(A choice among values in a settings row is a `SettingSelect`, see `nyxs-setting-select`; this
skill is for menus of actions and filters.)
## The panel
- Mark it `data-mod-menu` and `role="menu"`; items `role="menuitem"` (`menuitemradio` with
`aria-checked` for a pick).
- Background `bg-bg-100`, `border border-bg-300`, `shadow-xl`/`shadow-2xl`, corners
`rounded-[5px]`–`rounded-[8px]` (see `nyxs-corner-radius`), padding `p-1`–`p-1.5`.
- Over a custom theme, `data-mod-menu` gets the theme's glass at **92 % tint at least**
(`src/index.css`): at the panels' 60 % the text behind mixed with the items. Don't give a menu
its own translucent background.
- Opened from the sidebar or a list, render it in a portal or `fixed`, so it isn't clipped.
## The items
- One line each: `whitespace-nowrap`, **`text-left`**, label on the left, value or shortcut on
the right (`justify-between`). A `<button>` centers its text by default: a menu once showed
"Ordenar por" on two centered lines.
- Make the panel wide enough for the longest label in every language (the organize menu is
280 px); a value on the right truncates, the label never does.
- A row that opens a submenu shows its current value in `text-text-400` (accent when it differs
from the default) and a `ChevronRight`; the submenu opens on hover and on click.
- Groups split by `h-px bg-bg-300` separators; a destructive item last, `text-red-400`.
- A row's options menu can take letter shortcuts while it is open (as Claude's: U, R, F, A, D),
shown on the right in `text-text-500`.
## The buttons that open them
- Options: **`Ellipsis`** (horizontal `···`), never `EllipsisVertical`.
- Filter / organize / manage: **`ListFilter`**, never `SlidersHorizontal`.
- A hover-only button (`opacity-0 group-hover:opacity-100`) stays visible while its menu is open,
and when it carries state the user set (an active filter's dot).
- Icon-only: `aria-label`, and `data-tooltip` only when the icon isn't obvious (see
`nyxs-tooltips`).
## Shared pieces
`Dropdown`, `MenuItem`, `MenuSeparator`, `MenuLabel` in `src/components/customize/ui.tsx`;
`RecentsFilterMenu.tsx` for a menu with submenus; `SessionsPage.tsx` (`RowMenu`) for a row menu
with letter shortcuts.