NgStar
This Angular library generates stars (in yellow color) for rating provided in range of 0.0 to 5.0.
To use this library:
- Npm install ng-star
- In angular component wherever you want to use it, import this component and then
<lib-ng-star [rating]="3.5"></lib-ng-star>
3.5 stars with yellow color and remaining 1.5 stars with white color will be generated
This Angular library generates stars (in yellow color) for rating provided in range of 0.0 to 5.0
Ng Star
This Angular library generates stars (in yellow color) for rating provided in range of 0.0 to 5.0
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
-
About The Project
-
Getting Started
- Usage
- Contributing
- License
- Contact
About The Project
ng-star
This Angular library generates stars (in yellow color) for rating provided in range of 0.0 to 5.0
Built With
Getting Started
To get a local copy up and running follow these simple steps.
Prerequisites
none
Installation
- install package from npmjs
npm install ng-star
Usage
For the stars to generate correctly, make sure ng-star component is wrapped with atleast 200px width and 75px height:
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Abhishek Kumar - Email
Project Link: https://github.com/sami-colon/ng-star
sample images