Database
View Settings Panel
The “View settings” panel from the toolbar: view name, layout, property visibility, filter, sort, group and data source settings.
View settings
Data source settings
Usage
- Use
ViewSettingsPanelfor per-view configuration: name, layout, visible properties, filters, sorts and grouping. - Pass
heightwhen the panel is docked in a layout with a fixed height; otherwise it sizes to its content. - Apply each
onChangepatch to the view immediately; the panel has no Save step. - Don’t use it for settings that apply to the whole database or workspace; use a settings page instead.
Installation
Install the package (React 19):
terminal
terminal
terminal
Import the styles once, in your app entry or root layout:
/src/main.tsx
Use it anywhere inside your app's <Theme> (see Installation):
/src/ViewSettingsPanelExample.tsx
Examples
Fixed height
Inside DatabaseView the panel is 627px tall; pass height to match your layout.
View settings
Data source settings
Composition
anatomy
API Reference
ViewSettingsPanel
Based on <div> and supports its props (except onChange). Adds:
| Prop | Type | Default |
|---|---|---|
collection | Collection | |
view | View | |
onChange | (patch: Partial<View>) => void | |
onClose | () => void | |
height | number | auto |
Accessibility
role="dialog"labelled "View settings"; Close and Change icon are labelled buttons; the name input is labelled "View name" (Enter commits).- Rows: ArrowUp/ArrowDown and Enter/Space (
useMenuKeys); submenu rows open their flyout to the right.
© 2026 Motion. Internal documentation.