DATA DISPLAY
Medal
Heptagonal medal SVG with a five-rank token palette. Use it to render leaderboard ranks, achievement badges, and rating tiers.
Import
All ranks
Bronze
Silver
Gold
Master
Grandmaster
Sizes
Props
Medal props
| Prop | Type | Default | Description |
|---|---|---|---|
| rank* | 'bronze' | 'silver' | 'gold' | 'master' | 'grandmaster' | — | Selects the inner / outer / text token (--medal-{rank}-{outer|inner|text}). |
| value | ReactNode | — | Optional centred number / letters (e.g. 1, "M", "GM"). |
| label | string | — | Mono uppercase caption rendered below the medal. |
| size | number | 96 | SVG width and height in pixels. |
Accessibility
The SVG renders role="img" with aria-label derived from label (or a default like "gold medal" when no label is provided).