LottieFiles / lottie-react

lottie web player as a react component
https://lottiefiles.com
MIT License
720 stars 80 forks source link

[Feature Request] Change `style` type to `React.CSSProperties` #78

Closed irekrog closed 2 years ago

irekrog commented 2 years ago

Overview

What do you think about changing style?: { [key: string]: string | number; }; to style?: React.CSSProperties?

Type

Motivation

What inspired this feature request? What problems were you facing, or what else makes you think this should be included?

For example with CSSProperties will be better IDE support etc.

Labels

samuelOsborne commented 2 years ago

@irekrog This has been added in version 3.4.4! :-)