Svelte <Inspect {value} />

configured()

function configured(options: InspectValuesOptions): Configurable<Component>;

Creates a pre-configured Inspect-component that will inspect any value passed to it instead of using the value-prop.

The component will also inherit options set with setGlobalInspectOptions or InspectOptionsProvider.

“Global” options will be overriden by options passed to this method.

Parameters

options

InspectValuesOptions

Returns

Configurable < Component >

Example

<script>
 import {configured} from 'svelte-inspect-value'

 const Inspect = configured(() => ({ theme: 'plain', borderless: true, showPreview: false }))

 let str = 'hi'
 let obj = {}
</script>

<Inspect {str} {obj} arr={[1,2,3]} />

See