ih-star-ratings
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

IhStarRatings

A simple lightweight Rating Display Library by Ishraq Hossain.

Features

  • Display number Of Star Ratings.
  • Just need to pass the rating between 0 to 5. [rating]="4.2", [rating]="2.5", [rating]="1.1" like this.
  • Width is optional parameter. Default width is 250px. You can change the width by passing numeric value to [width].
  • Syntax - <ih-star-ratings [rating]="4.1" [width]="150">

Installation

Install ih-star-ratings with npm

  npm install ih-star-ratings

Import To AppModule

 
  import { IhRatingsModule } from "ih-star-ratings";

    @NgModule({
    declarations: [AppComponent],
    imports: [BrowserModule, IhRatingsModule],
    providers: [],
    bootstrap: [AppComponent]
  })

Syntax

<ih-star-ratings [rating]="3.5"></ih-star-ratings>

To Resize the Stars use [width] parameter. It accepts numeric only.

<ih-star-ratings [rating]="3.5" [width]="250"></ih-star-ratings>

Authors

Demo

https://angular-heley8.stackblitz.io

Screenshots

App Screenshot

Feedback

If you have any feedback, please reach out to us at hi@ishraq.in

Package Sidebar

Install

npm i ih-star-ratings

Weekly Downloads

2

Version

1.0.9

License

none

Unpacked Size

123 kB

Total Files

14

Last publish

Collaborators

  • itsishraq