@astro-bryceguy/rating

Astro component that uses star icons to display the rating of a product, post, comment, etc.


Keywords
astro, astro-bryceguy, rating, ui
License
MIT
Install
npm install @astro-bryceguy/rating@0.1.7

Documentation

astro-bryceguy

This is my Astro component library

NOTE: These components are static, rendered using SSG or SSR, if your looking for client-side js components for interactivity here are some Astro wrappers for popular web components:

Pagination

Customizeable page navigation

README

Features

  • Customize how many page numbers are shown at the start, middle, and end
  • Fully customize every elements tag, text, innerHTML, and attributes using astro-json-element
  • Add commas to page numbers
  • String number compatibility

This component is a fork/refactor of https://github.com/iozcelik/SarissaPagination

Example

Pagination

Rating

Uses star icons to display the rating of a product, post, comment, etc.

README

Features

  • Shows a rate (2/5, 7.5/10, etc) using stars
  • Supports displaying half stars
  • Uses astro-icon to serve star icon svgs
  • Fully customize every elements tag, text, innerHTML, and attributes using astro-json-elements

Example

Rating