We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70fd615 commit 22bfc7cCopy full SHA for 22bfc7c
packages/ra-ui-materialui/src/input/ArrayInput/SimpleFormIterator.stories.tsx
@@ -177,3 +177,18 @@ export const Sx = () => (
177
</Edit>
178
</AdminContext>
179
);
180
+
181
+export const ClearButton = () => (
182
+ <AdminContext dataProvider={dataProvider}>
183
+ <Edit resource="books" id="1">
184
+ <SimpleForm>
185
+ <ArrayInput source="authors">
186
+ <SimpleFormIterator clearButton={<button>clear</button>}>
187
+ <TextInput source="name" />
188
+ <TextInput source="role" />
189
+ </SimpleFormIterator>
190
+ </ArrayInput>
191
+ </SimpleForm>
192
+ </Edit>
193
+ </AdminContext>
194
+);
0 commit comments