Component librarySaved view manager
Saved view manager
ProManage consumer-owned saved filters with native forms, sharing state and confirmed deletion.
npx shadcn@latest add @tidal-pro/saved-view-managerInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/saved-view-manager.css, components/ui/alert-dialog.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Consumer-owned views require unique nonblank IDs and names, with optional description, exact filter summary, default/shared/disabled state. At most one view may be default. currentViewId/onCurrentViewChange provide controlled selection; null shows the localized unselected state and an unknown ID stays visible as unavailable for recovery. Optional renameAction and duplicateAction expose native trigger, form, text-input and submit attributes/refs; native form handlers run first, prevention suppresses the request, whitespace-only names show linked validation, and request callbacks receive the exact trimmed name and native submit event. Optional defaultAction and sharedAction expose pressed native buttons and propose only the next boolean state. Optional deleteAction composes Alert dialog for least-destructive focus, explicit confirmation, native trigger/cancel/confirm attributes/refs and bounded focus recovery when an accepted deletion removes its trigger. disabled and pendingAction make relevant controls inert and expose busy status. Optional h2-h5 heading level, localized labels, theme/direction/portal target, native select attrs/ref, panel attrs/ref and section attrs/ref are supported. Owned values, disclosure attributes, dangerous markup and misleading root availability/busy attributes are excluded and stripped. Consumers own filter definitions, naming policy, persistence, access control, sharing, deletion and every external effect. No request, network, storage or backend behavior is bundled.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.