Svelte <Inspect {value} />

Inspect.Values

Inspect.Values is a version of Inspect that will display any prop/value passed to it, instead of having to use the value(s) prop.

example
...
Result:
number :
num 1
isEven :
bool false
doubled :
num 2

Configuring

Inspect.Values does not accept any configuration props since any value passed as a prop will simply be inspected. If you want to change the behavior of Inspect.Values you can use global options or define a pre-configured version of the component with Inspect.Values.withOptions or the configured-function:

example
...

Inspect.Values and configured variants can all have expandLevel set by using "Expand" properties from 0 to 10 (default 1.)

Result:
msg :
str 'i have been configured' 22 chars
msg :
str 'me too' 6 chars
msg :
str 'i inherit options from DarkInspect' 34 chars
a :
num 1
b :
num 2
c :
num 3
:
obj 3 entries
a :
num 1
b :
num 2
c :
num 3

Chainable inline configuration

A final method to configuring Inspect.Values that will override global options and withOptions-variations is "chainable inline configuration":

example
...