Dropdown Menu
Checkbox Menu
A checkbox menu for column visibility: a click does not close the list, and the count of enabled items lives right in the button.
What you can change
- the button caption through trigger
- the mark style through mark: a check or a dot
- the column list through columns and the starting set through initial
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/dropdown-004?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
One file, zero dependencies, the --vibeui-dropdown-004-* palette. A client component: useState holds the set of enabled items. The items are marked up role=menuitemcheckbox with aria-checked, the mark is drawn with a border and inline SVG, and the space for it is always reserved — otherwise the rows jump on toggle. The mark prop switches the look of the mark (a check or a dot) through a data attribute on the root. hidePopover is deliberately not called on a pick: settings are changed in batches. The menu footer carries the count of what is enabled and a button to reset to the starting set. The palette is moved to light-dark(): in a dark environment the panel is lighter than the page background and its border lighter than the panel.
Tags
- menu
- dropdown
- checkbox
- columns
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…