svelte-object
v2.0.1
Published
<br> <div align='center'><a href='https://github.com/Refzlund/svelte-object'><img src='https://github.com/Refzlund/svelte-object/blob/master/logo.png' width=500></img></a></div> <br>
Downloads
227
Maintainers
Readme
👉 Define objects in your markup-structure!
💫 Driven by Svelte 5's runes for highly robust code
🔥 Handles submit events and validation
This could be your code See REPL
<h3> An array of pets </h3>
<I.Array bind:value={pets}>
{#snippet item(prop)}
<I.Object name={prop.index}>
<Input name='name' min={2}>Pets name</Input>
<Input name='age' type='number'>Pets age</Input>
</I.Object>
{/snippet}
<button on:click={() => pets.push({})}> Add pet </button>
</I.Array>
Note
What are you waiting for? Get Started!