Svelte <Inspect {value} />

inspectElement()

function inspectElement(name?: string): Attachment;

Inspect an element with Inspect.Panel

Parameters

name?

string

key of element in Inspect.Panel global values. Defaults to node.nodeName

Returns

Attachment

Example

<input bind:value={amount} type="number" {@attach inspectElement('amountInput')} />