Skip to content
caliper ui pro docs

Saved views

Named views of a table, personal or shared: a dot when the filters drift from the open view, with Save, Save as new and Reset, a prompt before leaving unsaved changes, and rename, duplicate, default and delete.

Pro

  • #4821Bank feed stopped syncingopen
  • #4793Two-factor codes arrive lateopen

When to use

  • Lists people come back to with the same filters: tickets, deals, invoices.
  • Teams that share a few standard ways of looking at the same data.

When not to use

  • One-off filtering; a filter toolbar is enough.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/saved-views

Adds its 8 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

SavedViews

16 props
PropTypeDefaultDescription
views *readonly SavedView<T>[]—
current *string—The open view's id.
value *T—The live filters, which may differ from the open view's saved value.
onSelect *(view: SavedView<T>) => void—Opens a view: apply its value to your filters.
onSave *(id: string, value: T) => void—
onCreate *(input: { name: string; value: T; shared: boolean; }) => void—Creates a view from the live filters and makes it the open one.
onRename *(id: string, name: string) => void—
onDuplicate((id: string) => void)—
onDelete *(id: string) => void—
onReorder((id: string, to: number) => void)—Moves a view to a new position; Alt+Shift+arrows on a tab, or the view's menu.
maxVisiblenumber5Tabs shown before the rest go into More; the open view always shows.
defaultIdstring—
onDefaultChange((id: string) => void)—
equals((a: T, b: T) => boolean)same
labelstring"Views"
classNamestring—

Keyboard

←
Moves to the previous item or value.
→
Moves to the next item or value.
Home
Jumps to the first item or the minimum.
End
Jumps to the last item or the maximum.

Accessibility

It exposes tab, tablist and status semantics, with aria-label, aria-selected and aria-hidden kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/saved-views.md

The index of every part is at /llms.txt.

More in Settings & security