CodingLaboratory
Lab Commands
Enter The Lab

Component Lab / forms-checkout / constellation-rating-input

Stable release
Back to category

Open experiment

Constellation rating input

Connects selected stars into a luminous constellation and includes a clear textual rating. Radio-like star buttons support arrows, Home, End, hover preview, and committed selection. Its ordered rating semantics and connected star path differ from general multi-select controls.

Lab tested Responsive Dark mode Interactive
Version
1.0.0
Updated
2026-08-02
Dependencies
Zero
Live canvasInstant token updates
Source filesEditable and export-ready
<form
  class="cmp-constellation-rating-input cmp-atlas"
  data-state="idle"
  data-variant="6"
  novalidate
>
  <div class="cmp-atlas__field-head"><span>Rating controls</span><b>Constellation rating</b></div>
  <fieldset>
    <legend>Rate the experience</legend>
    <div class="cmp-atlas__stars">
      <button type="button" data-choice="1" aria-pressed="false" aria-label="1 stars">*</button
      ><button type="button" data-choice="2" aria-pressed="false" aria-label="2 stars">*</button
      ><button type="button" data-choice="3" aria-pressed="false" aria-label="3 stars">*</button
      ><button type="button" data-choice="4" aria-pressed="true" aria-label="4 stars">*</button
      ><button type="button" data-choice="5" aria-pressed="false" aria-label="5 stars">*</button>
    </div>
  </fieldset>
  <output data-output>4 stars</output>
  <div class="cmp-atlas__field-meter" aria-hidden="true"><i></i></div>
  <p data-status aria-live="polite">Control ready</p>
</form>
No runtime reactions detected Open in Editor

Validated in the lab

Experiment report

  • Schema and source files passed
  • Responsive test passed
  • Keyboard test passed
  • No console errors

Component ingredients

Dependencies
None
Browser support
Current Chrome, Current Edge, Current Firefox, Current Safari
Version
1.0.0
Last tested
2026-08-02

Accessibility notes

  • Every interactive target is a labelled native control with a visible focus treatment.
  • State changes are communicated through a polite text status and never by color alone.
  • The contained visual effects stop when the user requests reduced motion.

License: MIT License for open-source use, modification, and distribution.