BadgeArrayEmit
<Story name="Edit array via Set component" knobs={{ canEdit: true, minimum: 0 }} let:knobs={{ canEdit, minimum }}> <ReactiveSet input={['A Tale of Four Cities', 'www.google.com']} let:value={editedBooks} let:add let:remove> <BadgeArrayEmit strings={editedBooks} {canEdit} {minimum} addMessage="Add Book" on:itemclicked={(e) => console.log('itemclicked', e.detail)} on:itemremoved={(e) => { remove(e.detail.value); }} on:additem={() => { const string = prompt('What would you like to add?'); if (string) { add(string.trim()); } }} />