edit schema wip

This commit is contained in:
2026-01-08 15:19:08 +02:00
parent ebccac210a
commit 25ad3fefab
18 changed files with 714 additions and 45 deletions
@@ -0,0 +1,49 @@
<script>
let { field } = $props();
</script>
<fieldset>
<label>
<input
bind:checked={field.props.required}
type="checkbox"
role="switch"
/>
Required
</label>
<label>
<input
bind:checked={field.props.readonly}
type="checkbox"
role="switch"
/>
Readonly
</label>
<label>
<input
bind:checked={field.props.hidden}
type="checkbox"
role="switch"
/>
Hidden
</label>
</fieldset>
<fieldset>
<label>
Default
<input bind:value={field.props.default} />
</label>
<label>
Help text
<input bind:value={field.props.help} />
</label>
<label>
Min characters
<input type="number" bind:value={field.props.min} />
</label>
<label>
Max characters
<input type="number" bind:value={field.props.max} />
</label>
</fieldset>