smastrom / react-rating

⭐ Zero-dependency, highly customizable rating component for React.
https://reactrating.netlify.app
MIT License
346 stars 6 forks source link

Styles are not imported #19

Closed piszczu4 closed 8 months ago

piszczu4 commented 8 months ago

I did

import { Rating } from '@smastrom/react-rating';

   <Rating
        value={4}
        items={6}
        style={{ maxWidth: 100 }}
        // className='flex w-[200px]'
      />

but when looking at devtools, the styles are not imported. Here is the output:

image

What am I doing wrong?

YoFiq commented 6 months ago

import '@smastrom/react-rating/style.css'; and will work