Skip to content

Commit 22bfc7c

Browse files
committed
added clear button story
1 parent 70fd615 commit 22bfc7c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

packages/ra-ui-materialui/src/input/ArrayInput/SimpleFormIterator.stories.tsx

+15
Original file line numberDiff line numberDiff line change
@@ -177,3 +177,18 @@ export const Sx = () => (
177177
</Edit>
178178
</AdminContext>
179179
);
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

Comments
 (0)