Skip to content

Commit b1f460f

Browse files
committed
Add a story for slotProps too
1 parent 7a92bfd commit b1f460f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

packages/ra-ui-materialui/src/input/AutocompleteArrayInput.stories.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,3 +798,23 @@ export const ChipProps = () => (
798798
/>
799799
</Wrapper>
800800
);
801+
802+
export const SlotPropsChip = () => (
803+
<Wrapper>
804+
<AutocompleteArrayInput
805+
source="roles"
806+
choices={[
807+
{ id: 'admin', name: 'Admin' },
808+
{ id: 'u001', name: 'Editor' },
809+
{ id: 'u002', name: 'Moderator' },
810+
{ id: 'u003', name: 'Reviewer' },
811+
]}
812+
slotProps={{
813+
// @ts-ignore
814+
chip: {
815+
deleteIcon: <BackspaceIcon />,
816+
},
817+
}}
818+
/>
819+
</Wrapper>
820+
);

0 commit comments

Comments
 (0)