0.3.5 • Published 5 years ago

rating-bars-group v0.3.5

Weekly downloads
102
License
-
Repository
github
Last release
5 years ago

Rating-Bars-Group

Installation:

npm i rating-bars-group -S or yarn add rating-bars-group

Props:

PropTypeDescriptionDefaultRequired
barsArrayArray of objects which contains size, title and colortrue
empHighestBooleanWhenever to emphasise the maximum number or notfalsefalse
limitBarsNumberSet a limit indicator of a nonzero positive number to show on top of the barsfalsefalse
onFinishFunctionCallback function which invoked once the bars reach its size numberfalse
isGlowingBooleanWhenever to make a glowing effect to the bars when mouse over themfalse

Example:

import React from "react";
import ReactDOM from "react-dom";
import { RatingGroup } from 'rating-bars-group';

const bars = [
  { size: 70, color: '#D20025', title: 'Angular'},
  { size: 100, color: '#53D2F9', title: 'React'},
  { size: 90, color: '#37AD70', title: 'Vue'}
];

function App()  {
  return (
	<RatingGroup bars={bars} />
  );
}

View with Storybook

0.3.5

5 years ago

0.3.4

5 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.9

6 years ago

0.2.8

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago