@aaronshaf/star-rating 中文文档教程
star-rating
星级评分组件。 升级输入元素。
Install
npm install --save @aaronshaf/star-rating
Usage
import React, { Component } from "react";
import StarRating from "@aaronshaf/star-rating";
const Example = () => {
return (
<StarRating size="2rem">
<input
type="number"
onChange={handleChange}
min="1"
max="5"
step="1"
value="0"
/>
</StarRating>
);
};
License
MIT © aaronshaf
star-rating
Star rating component. Upgrades input element.
Install
npm install --save @aaronshaf/star-rating
Usage
import React, { Component } from "react";
import StarRating from "@aaronshaf/star-rating";
const Example = () => {
return (
<StarRating size="2rem">
<input
type="number"
onChange={handleChange}
min="1"
max="5"
step="1"
value="0"
/>
</StarRating>
);
};
License
MIT © aaronshaf