Description
Iterate.ArrayRemoveElementButton
connects to the array of a surrounding Iterate.Array
and removes the element when clicked.
Demos
Primitive elements
Code Editor
<Iterate.Array value={['One', 'Two', 'Three', 'Four', 'Five']} onChange={(value) => console.log('onChange', value)} > <Layout.Horizontal align="center"> <Field.String elementPath="/" /> <Iterate.ArrayRemoveElementButton icon={TrashIcon} onChange={(value) => console.log('onChange', value)} /> </Layout.Horizontal> </Iterate.Array>