PanelSettings
type PanelSettings = { align: PositionProp appearance: 'solid' | 'glassy' | 'floating' | 'dense' height?: number opacity: boolean open: boolean width?: number}Props / settings that can be changed within the Inspect.Panel UI.
These can be persisted using built-in logic with persist or
customized logic using the onSettingsChange-callback
Properties
Section titled “Properties”align: PositionPropInitial panel position
Format: '<x-position> <y-position?>' (y is optional)
x-position can be one of 'left' | 'right' | 'center' | 'full'
y-position can be one of 'top' | 'bottom' | 'middle' | 'full'
Note: if only x-position is given it can only be 'left' or 'right'
Bindable
Example
Section titled “Example”<Inspect.Panel align="left"><Inspect.Panel align="right middle"><Inspect.Panel align="center top">Default
Section titled “Default”'right full'appearance
Section titled “appearance”appearance: 'solid' | 'glassy' | 'floating' | 'dense'Sets appearance of panel.
Can be 'solid'|'glassy'|'dense'|'floating'
Bindable
Default
Section titled “Default”'solid'height?
Section titled “height?”optional height: number;Panel height in pixels
Not used if y-position in align is 'full'
Bindable
Default
Section titled “Default”undefinedopacity
Section titled “opacity”opacity: booleanApply opacity to the panel when not hovered or focused
Bindable
Default
Section titled “Default”falseopen: booleanInitially open panel
Bindable
Default
Section titled “Default”falsewidth?
Section titled “width?”optional width: number;Panel width in pixels.
Not used if x-position in align is 'full'
Bindable
Default
Section titled “Default”undefined