Closed karthik-Jay closed 1 year ago
From a cursory view, I understood there is a createIcon feature present. From what I understand, it can be used to wrap around 'icon' component. So, what exactly is to be done to resolve this issue? Could you please elaborate a little?
From a cursory view, I understood there is a createIcon feature present. From what I understand, it can be used to wrap around 'icon' component. So, what exactly is to be done to resolve this issue? Could you please elaborate a little?
Hi @abhinit2050 nice to meet you! Currently we have some icons mapped to various enums via utility functions in /src/utiliites/icon-mappings.tsx
. We would like to use chakra ui's createIcon
wrapper so that we can use these icons as a chakra component. This task can be broken down into the following:
icon-mappings.tsx
. The chakra ui docs provide some tips: https://chakra-ui.com/docs/components/icon#tips-for-generating-your-own-iconscreateIcon
wrapped svgicon-mappings.tsx
to use the updated icons.boxSize
parameter to each function with default set to 12px
.Feel free to assign yourself to the issue if you are interested in taking on this task. And reach out if you need any further clarifications or assistance. Thanks!
https://chakra-ui.com/docs/components/icon#using-the-icon-component https://chakra-ui.com/docs/components/icon#using-the-createicon-function