Hover the icon or press Play. Suggested motion: pop. Pick another to preview it and update the animated code:
Rating icon
A free rating icon from Flat Color Icons, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.
- License
- MIT license
- Project
- github.com
npx shadcn@latest add https://ui.cuelark.com/r/icons/flat-color/rating.jsonimport * as React from "react";
/**
* Rating from Flat Color Icons (https://github.com/icons8/flat-color-icons), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/flat-color/rating. Sized in em, colored by currentColor.
*/
export function FcRatingIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
version="1"
viewBox="0 0 48 48"
enableBackground="new 0 0 48 48"
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<circle fill="#F44336" cx="24" cy="24" r="21" />
<polygon
fill="#FFCA28"
points="24,11 27.9,18.9 36.6,20.2 30.3,26.3 31.8,35 24,30.9 16.2,35 17.7,26.3 11.4,20.2 20.1,18.9"
/>
</svg>
);
}import { FcRating } from "react-icons/fc";
export function Example() {
return <FcRating className="size-5" />;
}<svg
version="1"
viewBox="0 0 48 48"
enable-background="new 0 0 48 48"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle fill="#F44336" cx="24" cy="24" r="21" />
<polygon
fill="#FFCA28"
points="24,11 27.9,18.9 36.6,20.2 30.3,26.3 31.8,35 24,30.9 16.2,35 17.7,26.3 11.4,20.2 20.1,18.9"
/>
</svg>"Rating" icon from Flat Color Icons (https://github.com/icons8/flat-color-icons), licensed under MIT license.