# Score ring

- **[Atoms](/components/)**

A score from 0 to 100 with a text equivalent. Unassessed is distinct from zero.

## When to use

- **Use for**: Bounded audit and quality scores with a readable text equivalent.
- **Not for**: Loading or completion progress. Use Progress.
- **Pairs with**: Audit overview and module cards.

## Preview

score-ring.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { ScoreRing } from '@/components/klarhimmel/ui/score-ring';

export default function Example() {
  return (
    <Theme theme="brand">
      <ScoreRing value={68} label="Readiness" />
    </Theme>
  );
}
```

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/score-ring
  ```
- **Import**

  ```
  import { ScoreRing } from '@/components/klarhimmel/ui/score-ring';
  ```

- **Files**: score-ring.tsx, in components/klarhimmel/ui/. With it: theme, utils.
- **Render in**: Render it inside <Theme>, once near the root of your app. Tokens and fonts are scoped to it, so outside it the component is unstyled.

## Props

- **value**: 0–100; null or a non-finite value is unassessed. Values are clamped.
- **label**: Names the score in its visible caption.
- **unavailable**: Caption for an unassessed score.
- **className**

## Accessibility

- Screen reader · Reads the label and score caption; the ring is decorative.

[Accessibility](/get-started/accessibility)

[Previous](/components/collection-controls)

[Next](/components/button)
