0.0.2 • Published 2 years ago
starin v0.0.2
Starin
This is a simple star component for React.
Installation
npm install starin
or
yarn add starin
or
pnpm add starin
Usage
import React from 'react';
import Star from 'starin';
<Starin size={'md'} count={5} rating={2} isLoading={false} />
Props
property | description | default | type | required |
---|---|---|---|---|
size | star size | md | sm md lg | ❌ |
count | star count | 5 | number | ❌ |
rating | colored star count | 0 | number | ❌ |
isLoading | while loading behavior | false | boolean | ❌ |
onClick | set the behavior to click on the star | function | ❌ |