Radio buttons

Pick exactly one option from a list. The round indicator springs in on select.

CSS onlyKeyboardLight and dark
BackgroundGridAccent

Corners

SharpDefaultRound

Shadow

NoneNoneStrong

Motion

NoneDefaultBounce
<style>
.ux-radio{display:grid;gap:14px;font:500 15px system-ui;color:var(--fg,#14151a)}
.ux-radio label{display:flex;align-items:center;gap:10px;cursor:pointer}
.ux-radio input{position:absolute;opacity:0}
.ux-radio span{width:20px;height:20px;border-radius:50%;border:2px solid var(--line,#cfd2da);display:grid;place-items:center;transition:border-color var(--dur,.15s) var(--ease,ease)}
.ux-radio span::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--accent,#cc4a26);transform:scale(0);transition:transform var(--dur,.18s) var(--ease,cubic-bezier(.3,1.6,.5,1))}
.ux-radio input:checked+span{border-color:var(--accent,#cc4a26)}
.ux-radio input:checked+span::after{transform:scale(1)}
.ux-radio input:focus-visible+span{outline:2px solid var(--accent,#cc4a26);outline-offset:2px}
</style>

<div class="ux-radio">
  <label><input type="radio" name="ux-plan" checked><span></span>Monthly</label>
  <label><input type="radio" name="ux-plan"><span></span>Yearly</label>
  <label><input type="radio" name="ux-plan"><span></span>Lifetime</label>
</div>

When to use it

Reach for this when someone has to pick from a small, visible set of options rather than typing free text. It works best when every choice fits on screen at once.

Accessibility

It is fully keyboard operable: tab to it and use the keys you would expect (space, enter or the arrow keys) to change its value, with a visible focus ring so sighted keyboard users can always see where they are. It has no JavaScript dependency, so it keeps working if a script fails to load, and it is built on native form controls or semantics rather than divs pretending to be one. Colors are read from CSS custom properties, so they follow your light or dark theme and you can raise contrast globally without touching this component.