The `component` property is not definable in `<DeleteWithConfirmButton>`
Author: antoinefrickerCreated Oct 25, 2023Updated Sep 26, 2026
LabelsTypeScript
What you were expecting:
Be able to specify component property of the <DeleteWithConfirmButton> component.
What happened instead:
Setting <DeleteWithConfirmButton component="a" ... /> (which is acceptable for the React-Admin or MUI <Button> components) will trigger a TS error:
Type '"a"' is not assignable to type '"button"'.The same behavior is applicable to <CloneButton /> so it might be a more global issue.
Related code:
https://stackblitz.com/edit/github-uvsgue?file=src%2Fusers%2FUserEdit.tsx
Source: marmelab/react-admin