Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List all icons using React #1001

Closed
tsnery opened this issue Feb 12, 2024 · 0 comments · Fixed by #1050
Closed

List all icons using React #1001

tsnery opened this issue Feb 12, 2024 · 0 comments · Fixed by #1050
Labels
support-request Help/support requested

Comments

@tsnery
Copy link

tsnery commented Feb 12, 2024

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support-request Help/support requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants