Closed
Description
Package
@carbon/react, carbon-components-react
Browser
No response
Package version
v8.37.0
React version
v18
Description
Hi team,
I'm using the DataTable
and enable the search bar on it.
So in the toolbar, I used the TableToolbarSearch
component, which is like:
<TableToolbarSearch renderIcon={<Search />} />
and is a customized svg, but met an error:
Debug result: I guess this is because the props type of CustomerSearchIcon about the icon is not the same as the renderIcon type of Search component.
BTW, I'm using @types/carbon-components-react, I guess the issue is caused by the package for typescript is not updated.
Thanks team! Looking forward the response.
Reproduction/example
N/A
Steps to reproduce
- use typescript
- use carbon-components-react
- pass svg like this <TableToolbarSearch renderIcon={} />
Suggested Severity
None
Application/PAL
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
- I checked the current issues for duplicate problems
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Type
Projects
Status
✅ Done