ant-design/components/rate/index.en-US.md

28 lines
896 B
Markdown
Raw Normal View History

---
category: Components
type: Data Entry
title: Rate
---
Rate component.
2016-09-10 13:43:30 +08:00
## When To Use
2016-11-16 21:33:37 +08:00
- 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 |
2017-03-06 14:23:38 +08:00
| character | custom character of rate | ReactNode | `<Icon type="star" />` |
| className | custom class name of rate | string | - |
| style | custom style object of rate | object | - |