ant-design/components/rate/index.en-US.md
偏右 a80d6b7231 upgrade rc-rate to 2.x (#4955)
1. allow custom charactor
2. add className and onHoverChange

close #4870
2017-02-21 14:44:13 +08:00

896 B

category type title
Components Data Entry Rate

Rate component.

When To Use

  • Show evaluation.
  • A quick rating operation on something.

API

Property Description type Default
count star count number 5
value current value number -
defaultValue default value number 0
onChange callback when select value Function(value: number) -
onHoverChange callback when hover item Function(value: number) -
allowHalf whether to allow semi selection boolean false
disabled read only, unable to interact boolean false
charactor custom charactor of rate ReactNode <Icon type="star" />
className custom class name of rate string -
style custom style object of rate object -