TidalUI

Saved view manager preview

Manage consumer-owned saved filters with native forms, sharing state and confirmed deletion.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/saved-view-manager

Import components/ui/tidal.css, components/ui/saved-view-manager.css. Wrap installed components in tidal-scope.

Preview

Saved view manager component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/saved-view-manager.css";
import{TidalSavedViewManager}from"./components/ui/saved-view-manager";
export default()=><div className="tidal-scope"><TidalSavedViewManager currentViewId={"example"} onCurrentViewChange={() => {}} title={"Demo"} views={[{id:"example",name:"Demo"}]}/></div>;

API and props

TidalSavedViewManager.currentViewId (required)
string | null

Required current view id value accepted by this exported component.

TidalSavedViewManager.onCurrentViewChange (required)
(viewId: string, event: ChangeEvent<HTMLSelectElement>) => void

Callback invoked when the current view change interaction is proposed.

TidalSavedViewManager.title (required)
ReactNode

Required title value accepted by this exported component.

TidalSavedViewManager.views (required)
ReadonlyArray<TidalSavedView>

Required views value accepted by this exported component.

TidalSavedViewManager.defaultAction
TidalSavedViewToggleAction | undefined

Optional default action value accepted by this exported component.

TidalSavedViewManager.deleteAction
TidalSavedViewDeleteAction | undefined

Optional delete action value accepted by this exported component.

TidalSavedViewManager.description
ReactNode

Optional description value accepted by this exported component.

TidalSavedViewManager.direction
"ltr" | "rtl" | undefined

Optional direction value accepted by this exported component.

TidalSavedViewManager.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalSavedViewManager.duplicateAction
TidalSavedViewNameAction | undefined

Optional duplicate action value accepted by this exported component.

TidalSavedViewManager.headingLevel
"h2" | "h3" | "h4" | "h5" | undefined

Optional heading level value accepted by this exported component.

TidalSavedViewManager.labels
Partial<TidalSavedViewManagerLabels> | undefined

Optional labels value accepted by this exported component.

TidalSavedViewManager.panelProps
Omit<HTMLAttributes<HTMLElement>, "aria-disabled" | "children" | "dangerouslySetInnerHTML"> | undefined

Optional panel props value accepted by this exported component.

TidalSavedViewManager.panelRef
Ref<HTMLElement> | undefined

Optional panel ref value accepted by this exported component.

TidalSavedViewManager.pendingAction
{ type: "rename" | "duplicate" | "default" | "shared" | "delete"; viewId: string; } | null | undefined

Optional pending action value accepted by this exported component.

TidalSavedViewManager.portalContainer
HTMLElement | null | undefined

Optional portal container value accepted by this exported component.

TidalSavedViewManager.renameAction
TidalSavedViewNameAction | undefined

Optional rename action value accepted by this exported component.

TidalSavedViewManager.selectProps
NativeSelectProps | undefined

Optional select props value accepted by this exported component.

TidalSavedViewManager.selectRef
Ref<HTMLSelectElement> | undefined

Optional select ref value accepted by this exported component.

TidalSavedViewManager.sharedAction
TidalSavedViewToggleAction | undefined

Optional shared action value accepted by this exported component.

TidalSavedViewManager.theme
"light" | "dark" | undefined

Optional theme value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas