JsonArrayElement
Create a JSON Array element. This component should be used inside of a
JsonArray component. Can either be provided children
, or a JS
value which will be serialized to JSON.
Overload 1
Create a JSON Array element by providing a JS value that will be serialized to JSON.
import { JsonArrayElement } from "@alloy-js/json";
<JsonArrayElement jsValue={unknown} />
import { JsonArrayElement } from "@alloy-js/json/stc";
JsonArrayElement({ jsValue: unknown }).children(children)
Props
jsValue | unknown |
Overload 2
Create a JSON Array element by providing children.
import { JsonArrayElement } from "@alloy-js/json";
<JsonArrayElement > {children}</JsonArrayElement>
import { JsonArrayElement } from "@alloy-js/json/stc";
JsonArrayElement({ }).children(children)
Props
children | Children |