tabler / tabler-icons

A set of over 5700 free MIT-licensed high-quality SVG icons for you to use in your web projects.
https://tabler.io/icons
MIT License
18.28k stars 915 forks source link

[Feature Request] Icon spin property #474

Closed luicfrr closed 1 year ago

luicfrr commented 1 year ago

Would be nice to have a native prop for making some icons spin like a loading indicator.

As I'm using React I'll use it as an example:

import { IconLoader2 } from '@tabler/icons-react'

return (
   ....
   < IconLoader2
       size={24}
       spin // or maybe spin={ true }
   /> 
   ....
)

This will make the icon spin indefinitely

codecalm commented 1 year ago

Hi Luiz, unfortunately Tabler Icons provide only SVG files, without any CSS and it's impossible to animate icons without CSS 🙁