# Beste UI

> Beautiful, accessible blocks, pieces and components for shadcn/ui and Tailwind CSS, built for React and Next.js. Install one with the shadcn CLI and the code is yours to edit: no runtime dependency, nothing to upgrade.

Markdown rendition of https://ui.beste.co/component/badge12. Every page on the site has one: add `.md` to any address, or send `Accept: text/markdown`.

Whole catalog for LLMs: https://ui.beste.co/llms.txt. Registry index: https://ui.beste.co/r/registry.json

---
1. /
2. [Components](/components)
3. /
4. [Badge](/components/badge)
5. /
6. Rating Badge

# Rating Badge

A star rating badge with a numeric value and review text for social proof sections.

PreviewCode

4.9from 200+ reviews

## Installation

Adds the component and everything it depends on to your project.

![](https://oud.pics/sm/l/npm.svg)npm![](https://oud.pics/sm/l/bun.svg)bun![](https://oud.pics/sm/l/pnpm.svg)pnpm![](https://oud.pics/sm/l/yarn.svg)yarn

Base UI

`npx shadcn add https://ui.beste.co/component/r-base/badge12`

New here? Read the [installation guide](/docs/installation).

## Usage

The import and the props worth knowing about, in one place.

```
import { Badge12 } from "@/components/beste/component/badge12";

<Badge12 value={4.9} text="from 200+ reviews" />

<Badge12
  value={5}
  tone="primary"    // "amber" (default) | "primary" | "foreground"
  showValue={false} // stars only
  text="Rated 5 stars on G2"
/>
```

## Playground

Turn the props on the right; the snippet under them is what you would write to get what you see.

4.9from 200+ reviews

Usage

```
import { Badge12 } from "@/components/beste/component/badge12";

<Badge12
  text="from 200+ reviews"
/>
```

Props

Value

Text

Show value

Surface

Toneamber

## Props

Read from the component's own type, so this cannot drift from what it accepts.

| Prop      | Type                 | Default      | Description                                              |            |
| --------- | -------------------- | ------------ | -------------------------------------------------------- | ---------- |
| value     | number               | —            | Rating value, 0–5                                        |            |
| text      | string               | —            | Muted context after the stars (e.g. "from 200+ reviews") |            |
| showValue | boolean              | —            | Show the numeric value next to the stars                 |            |
| tone      | "amber" \| "primary" | "foreground" | —                                                        | Star color |
| className | string               | —            | Additional classes merged onto the root                  |            |

[PreviousBarcode Badge](/component/badge11)[NextMarker Highlight Badge](/component/badge13)

On this page
* [Preview](#preview)
* [Installation](#installation)
* [Usage](#usage)
* [Playground](#playground)
* [Props](#props)

## More Badge components

[View all Badge](/components/badge)

[](/component/badge14)

![](https://i.pravatar.cc/64?img=12)![](https://i.pravatar.cc/64?img=32)![](https://i.pravatar.cc/64?img=45)![](https://i.pravatar.cc/64?img=8)Loved by 2,400+ founders

### Testimonial Badge

A testimonial badge with an avatar stack, star rating, and social proof text for hero sections.

[](/component/badge15)

12k+active users

### Stat Badge

A stat badge with an icon, bold value, and label for quick hero metrics.

[](/component/badge11)

Est. 2019, Berlin

### Barcode Badge

A decorative barcode badge with a monospace caption for editorial and print inspired sections.

[](/component/badge16)

![](https://i.pravatar.cc/72?img=26)Selin AksoyProduct Designer

### Profile Badge

A profile badge with avatar, name, and role for author and team credits.

[](/component/badge19)

BrandingWeb designMotion3D

### Tag Group Badge

A tag group badge that renders wrapping chips for services, skills, and topics.

[](/component/badge9)

+12.4%vs last month

### Trend Delta Badge

A metric delta badge with trend arrows for dashboards, stat rows, and pricing tables.

## Ship the interface, keep the code.

New blocks, pieces and components every week. Install one with a command and it is yours to edit. No runtime dependency, no upgrade path to fight.

[Browse the libraryBrowse the library](/blocks)[See pricingSee pricing](/pricing)

### Library

* [Blocks](/blocks)
* [Pages](/pages)
* [Pieces](/pieces)
* [Components](/components)
* [Search](/search)

### Learn

* [Docs](/docs)
* [AI & MCP](/docs/mcp)
* [Blog](/blog)
* [Free tools](/tools)
* [What's new?](/changelog)
* [Website Builder](https://beste.co)

### More

* [Pricing](/pricing)
* [Referrals](/referrals)
* [License](/license)
* [GitHub](https://github.com/beste-co/beste-ui)

### Shadcn Blocks

* [Shadcn Hero Blocks](/blocks/hero)
* [Shadcn Feature Blocks](/blocks/feature)
* [Shadcn Pricing Blocks](/blocks/pricing)
* [Shadcn CTA Blocks](/blocks/cta)
* [Shadcn FAQ Blocks](/blocks/faq)
* [Shadcn About Blocks](/blocks/about)
* [Shadcn Stats Blocks](/blocks/stats)
* [Shadcn Footer Blocks](/blocks/footer)
* [Shadcn Navigation Blocks](/blocks/navigation)
* [Shadcn Auth Blocks](/blocks/auth)
* [Shadcn Ecommerce Blocks](/blocks/ecommerce)
* [Shadcn Portfolio Blocks](/blocks/portfolio)
* [Shadcn Showcase Blocks](/blocks/showcase)
* [Shadcn Careers Blocks](/blocks/careers)
* [Shadcn Onboarding Blocks](/blocks/onboarding)
* [Shadcn Coming Soon Blocks](/blocks/coming-soon)
* [Shadcn Post Blocks](/blocks/post)
* [Shadcn Legal Blocks](/blocks/legal)
* [Shadcn Workflow Blocks](/blocks/workflow)
* [Shadcn News Blocks](/blocks/news)

© 2026, [Beste](https://beste.co). All rights reserved.