Velocity X Components

Standard Data

Column Visibility Menu

A settings popover for showing or hiding table columns, with the chosen layout remembered between visits so people don't have to rebuild their view every time they come back.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-column-visibility-menu

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Column Visibility Menu →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Column Visibility Menu

Props

NameTypeRequiredDefaultDescription
columnsarrayNo[]
storageKeystringNo"velocity-column-visibility"
onChangefunctionNo() => {}
labelstringNo"Columns"
classNamestringNo""

No `Props:` JSDoc comment found — types are undocumented in source, only names/defaults are known.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-column-visibility-menu/ColumnVisibilityMenu.jsx

Using the Column Visibility Menu component

Install it with velocityx add standard-column-visibility-menu. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Data.