export const title = "Rating badge and stars" export const description = "Free and open-source React rating badge and star components built for modern applications and websites. These rating badge and stars are built using React Aria and styled with Tailwind CSS." export const links = { github: "https://github.com/untitleduico/react/blob/main/components/foundations/rating-badge.tsx", } import { RatingStars } from "@/components/foundations/rating-stars"; import { RatingBadge } from "@/components/foundations/rating-badge"; ```tsx import { RatingBadge } from "@/components/foundations/rating-badge"; ``` ## Installation You can add this rating badge and stars component using our CLI or manually: ```bash npx untitledui@latest add rating-badge ``` Copy the files below into your project: Great! Now you can start using the illustrations components in your project by just copy/pasting our examples below. ## Rating badge and stars examples Below are examples and variations of this rating badge and stars component: ### Rating stars Rating stars are used to display the rating of a product, service, or anything else. You can change the rating (between 0 and 5) of the rating stars component by passing the `rating` prop. ```tsx import { RatingStars } from "@/components/foundations/rating-stars"; ``` ### Rating badge This rating badge is especially useful for displaying awards, ratings, and reviews. You can customize the rating badge by passing the `rating` prop. In addition, you can also change the title and subtitle of the rating badge by passing the `title` and `subtitle` props. ```tsx import { RatingBadge } from "@/components/foundations/rating-badge"; ```