Skip to content

Rating

Star rating built from radio buttons, so it submits with a form and needs no JavaScript.

Basic

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/rating.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-ratingA fieldset of radios in reverse order.
mn-rating-sm · mn-rating-lgSizes.

Accessibility

  • Each star is a radio with a text label ("3 stars"), so it is announced and arrow-keyable. Inputs are listed highest first for the CSS; the visual order is still left to right.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page