Context Menu

Column Toggles

A table-header context menu with column visibility checkboxes: columns really do disappear, and the last remaining one cannot be switched off.

What you can change

  • the table caption through caption
  • the column list through columns and the cell contents through cells
  • the buttonText, menuLabel, menuTitle and lockNote captions — Russian by default

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.ru/c/contextmenu-007?lang=en&theme=dark

2Paste into the chat
3Get it in your project

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-contextmenu-007-* palette. Client component: useState holds the set of visible columns and the table is drawn from it, so the toggle really works. The menu is called by a right click on the thead and by the "Columns" button with a counter — a phone has no right click. The entries are marked role=menuitemcheckbox with aria-checked, and the menu does not close on a press: columns are hidden in batches. The last visible column is marked aria-disabled and cannot be switched off: a table without columns is an empty rectangle with nothing to come back from. When a column returns, its order is taken from the original list rather than from the order of presses. The theme comes from the surrounding color-scheme through light-dark(), and the table has no background of its own by default.

Tags

  • contextmenu
  • table
  • columns
  • checkbox
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…