Performance
PassFrame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.7 KB · Runtime 2.1 KB
empty-falcon-21MITCheckboxUiverse.io
A checkbox built with plain HTML and CSS by 010binary. Collected from Uiverse.io under the MIT licence and shown here live.
Quality report
The grade and score come from automated checks run at build or test time. If a check did not run, it is marked Not tested — numbers are never invented.
Frame rate: 60 fps average, p5 59.9 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 1.7 KB · Runtime 2.1 KB
Issues 0 · Screen reader: Needs attention
No continuous motion
No overflow
Frame rate and long-task figures were measured in headless Chromium with software WebGL. They are only comparable between components on this site, and do not represent real devices.
Not applicable: no visible animation at rest. Hover-triggered animation was not tested.
No axe-core violations.

Checked Nov 15, 2026 · Figures come from an automated script, not from hand-written samples.
Shown at real size.
The copy starts with the licence notice. Keep it when you use the code.
<div class="radio-input">
<input checked="" value="color-1" name="color" id="color-1" type="radio" />
<label for="color-1">
<span>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<g stroke-width="0" id="SVGRepo_bgCarrier"></g>
<g
stroke-linejoin="round"
stroke-linecap="round"
id="SVGRepo_tracerCarrier"
></g>
<g id="SVGRepo_iconCarrier">
<g id="Interface / Check">
<path
stroke-linejoin="round"
stroke-linecap="round"
stroke-width="2"
stroke="#ffffff"
d="M6 12L10.2426 16.2426L18.727 7.75732"
id="Vector"
></path>
</g>
</g>
</svg>
</span>
</label>
<input value="color-2" name="color" id="color-2" type="radio" />
<label for="color-2">
<span>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<g stroke-width="0" id="SVGRepo_bgCarrier"></g>
<g
stroke-linejoin="round"
stroke-linecap="round"
id="SVGRepo_tracerCarrier"
></g>
<g id="SVGRepo_iconCarrier">
<g id="Interface / Check">
<path
stroke-linejoin="round"
stroke-linecap="round"
stroke-width="2"
stroke="#ffffff"
d="M6 12L10.2426 16.2426L18.727 7.75732"
id="Vector"
></path>
</g>
</g>
</svg>
</span>
</label>
<input value="color-3" name="color" id="color-3" type="radio" />
<label for="color-3">
<span>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
<g stroke-width="0" id="SVGRepo_bgCarrier"></g>
<g
stroke-linejoin="round"
stroke-linecap="round"
id="SVGRepo_tracerCarrier"
></g>
<g id="SVGRepo_iconCarrier">
<g id="Interface / Check">
<path
stroke-linejoin="round"
stroke-linecap="round"
stroke-width="2"
stroke="#ffffff"
d="M6 12L10.2426 16.2426L18.727 7.75732"
id="Vector"
></path>
</g>
</g>
</svg>
</span>
</label>
</div>/* From Uiverse.io by 010binary - Tags: simple, material design, icon, active, checkbox */
.radio-input {
background-color: #fff;
padding: 20px;
border-radius: 20px;
display: flex;
}
.radio-input input[type="radio"] {
display: none;
}
.radio-input input[type="radio"] + label {
color: #333;
font-family: Arial, sans-serif;
font-size: 14px;
}
.radio-input input[type="radio"] + label span {
display: inline-block;
width: 40px;
height: 40px;
margin: -1px 4px 0 0;
vertical-align: middle;
cursor: pointer;
border-radius: 50%;
border: 2px solid #ffffff;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);
background-repeat: no-repeat;
background-position: center;
text-align: center;
line-height: 44px;
transition: background-color 0.3s ease;
}
.radio-input input[type="radio"] + label span svg {
opacity: 0;
transition: all 0.3s ease;
}
.radio-input input[type="radio"]#color-1 + label span {
background-color: #b0b0b0;
}
.radio-input input[type="radio"]#color-2 + label span {
background-color: #b0b0b0;
}
.radio-input input[type="radio"]#color-3 + label span {
background-color: #b0b0b0;
}
.radio-input input[type="radio"]:checked + label span {
background-color: #ff4500; /* Change to orange when checked */
}
.radio-input input[type="radio"]:checked + label span svg {
opacity: 1;
}
.radio-input input[type="radio"]#color-1:checked ~ label[for="color-2"] span,
.radio-input input[type="radio"]#color-1:checked ~ label[for="color-3"] span {
background-color: #b0b0b0; /* Gray color when not checked */
}
.radio-input input[type="radio"]#color-2:checked ~ label[for="color-1"] span,
.radio-input input[type="radio"]#color-2:checked ~ label[for="color-3"] span {
background-color: #b0b0b0; /* Gray color when not checked */
}
.radio-input input[type="radio"]#color-3:checked ~ label[for="color-1"] span,
.radio-input input[type="radio"]#color-3:checked ~ label[for="color-2"] span {
background-color: #b0b0b0; /* Gray color when not checked */
}Controls · HTML · CSS · JS
Edit the code and tune it with the controls. The preview updates as you type.

This component runs from a bundled build, so its script is read-only here. Edit the HTML and CSS; the full source is in the Code tab.
Edit every component live, tune it with controls, download the full source and copy the advanced prompts.
$49 one-timePlaceholder price
Test mode: no real payment is taken.
Free: preview, copy buttons and the lesson notes.
Round colour swatches sit in a white rounded panel, and the chosen one shows a tick, so picking a colour is quick and visual.
Product colour options, theme pickers and label colours.
Change each swatch colour, the 20px panel padding and radius, and the tick icon colour.
Build a "Colour swatch picker" component in plain HTML, CSS and JavaScript (no framework). Round colour swatches sit in a white rounded panel, and the chosen one shows a tick, so picking a colour is quick and visual. Use it for: Product colour options, theme pickers and label colours. Expose these controls: Change each swatch colour, the 20px panel padding and radius, and the tick icon colour. Support light and dark themes, respect prefers-reduced-motion with a still frame, keep text readable and controls keyboard accessible. Write original code; do not copy from paid or restricted component libraries.
A longer prompt with tuning, accessibility and integration steps.