Svelte JSON Schema Form
Supports JSON Schema Draft-07
. You can assert for this by checking the $schema
keyword within your schema before sending it to the form element.
Supports only a subset of JSON Schema Draft-07.
ajv
strict
mode compliant schema:Inspired by React JSON Schema Form.
But there will be a few differences in approach.
Form
schema
sharedContext
getFieldLayout: (schema, value) -> SvelteComponent
getWidget: (schema, value) -> SvelteComponent | Element
getField: (schema, value) -> SvelteComponent
FieldLayout
schema
sharedContext
Field
schema
getWidget: (schema, value) -> SvelteComponent | Element
Widget
schema
value
getComponent contract
schema.widget
is defined, then look up by schema.type.widget
.schema.format
is defined, then look up by schema.type.format
.schema.type
getProps contract
schema.widget
is defined, then look up by schema.type.widget
.schema.format
is defined, then look up by schema.type.format
.schema.type
WIP Expect 💥 bugs 💥