Svelte <Inspect {value} />

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

See

Properties

align

align: PositionProp;

Initial 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

<Inspect.Panel align="left">
<Inspect.Panel align="right middle">
<Inspect.Panel align="center top">

Default

'right full'

appearance

appearance: "solid" | "glassy" | "floating" | "dense";

Sets appearance of panel.

Can be 'solid'|'glassy'|'dense'|'floating'

Bindable

Default

'solid'

height?

height: number;

Panel height in pixels

Not used if y-position in align is 'full'

Bindable

Default

undefined

opacity

opacity: boolean;

Apply opacity to the panel when not hovered or focused

Bindable

Default

false

open

open: boolean;

Initially open panel

Bindable

Default

false

width?

width: number;

Panel width in pixels.

Not used if x-position in align is 'full'

Bindable

Default

undefined