Tomato PHP

Tomato Repeater

if you have a JSON object and you went to fill it with data with a selected type of input it can be easy by using Repeater Components.
this component has 2 types, repeater/schema, the repeater is built an array of JSON but schema build just 1 JSON Object
:options that must have a field of the JSON object and you can access these fields by using v-model this way repeater.main[key].label where the label is the name of the field
<x-tomato-repeater :options="['label']" type="repeater" id="site_menu" name="site_menu" label="Site Menu" required>
<x-splade-input class="my-2" v-model="repeater.main[key].label" type="text" placeholder="label" required />