Hover the icon or press Play. Suggested motion: twinkle. Pick another to preview it and update the animated code:
Star icon
A free star icon from Heroicons 2, 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/heroicons-2/star.jsonimport * as React from "react";
/**
* Star from Heroicons 2 (https://github.com/tailwindlabs/heroicons), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/heroicons-2/star. Sized in em, colored by currentColor.
*/
export function HiStarIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
viewBox="0 0 24 24"
aria-hidden="true"
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z"
clipRule="evenodd"
/>
</svg>
);
}import { HiStar } from "react-icons/hi2";
export function Example() {
return <HiStar className="size-5" />;
}<svg
viewBox="0 0 24 24"
aria-hidden="true"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z"
clip-rule="evenodd"
/>
</svg>"Star" icon from Heroicons 2 (https://github.com/tailwindlabs/heroicons), licensed under MIT license.Related icons: favorite, rating, review, bookmark
Star icon in other sets
- Star · Circum Icons
- Star · Font Awesome 5
- Star · Font Awesome 6
- Star · Ionicons 5
- Star · Material Design icons
- Star · Typicons
- Star · Github Octicons icons
- Star · Feather
- Star · Lucide
- Star · Bootstrap Icons
- Star · Grommet-Icons
- Star · Heroicons
- Star · Simple Line Icons
- Star · BoxIcons
- Star · Tabler Icons
- Star · Themify Icons
- Star · Radix Icons
- Star · Phosphor Icons