configured
function configured(options): Configurable<LegacyComponentType>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
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”Configurable<LegacyComponentType>
Example
Section titled “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]} />