Velocity X Components

Standard Data

Saved Views Selector

A dropdown for switching between named table views, with save-current-as-new and rename-in-place built in, so users can keep several filtered/sorted layouts ready without rebuilding them each time.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-saved-views-selector

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 Saved Views Selector →

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

react v1.0.2 react
Saved Views Selector

Props

NameTypeRequiredDefaultDescription
viewsarrayNo[]
activeIdnullNonull
onSelectfunctionNo() => {}
onSavefunctionNo() => {}
onRenamefunctionNo() => {}
labelstringNo"Saved views"
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-saved-views-selector/SavedViewsSelector.jsx

Using the Saved Views Selector component

Install it with velocityx add standard-saved-views-selector. 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.