Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 6.53 KB

star-rating-widgets.md

File metadata and controls

80 lines (58 loc) · 6.53 KB

Star rating widgets

While building a star rating widget for AMP, I've evaluated 40+ GitHub projects, codepends, Fiddles and StackOverflow samples. Here are the results, excluding projects that had no stars or issues, or have not been updated in more than two years.

Some widgets insist on using only CSS. This has academic value, but is an unrealistic requirement, and makes it impossible to get other functionality right, such as keyboard accessibility that doesn't go backwards.

Other widgets depend on jQuery (most often), React, Angular, or Vue. Hard to see how this is necessary, when writing plain JavaScript modules is a much better idea for serveral good reasons.

Superset of features

CSS only implementations

Notable libraries without dependencies

Web components

For API and features reference

Non-radio button fallback elements (require JS)

Rejected libraries

StackOverflow discussions