Closed tsnery closed 6 months ago
I want to be able to get all icons names to make something like this:
<div>{icons.map(icon => (<i className={ti ti-${icon.name}}></i>))}</div>
<div>{icons.map(icon => (<i className={
}></i>))}</div>
Is there a way to import all icons in a React component?
I want to be able to get all icons names to make something like this:
<div>{icons.map(icon => (<i className={
ti ti-${icon.name}}></i>))}</div>