mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-28 11:08:30 +08:00
24 lines
621 B
Markdown
24 lines
621 B
Markdown
---
|
|
category: Components
|
|
type: Form Controls
|
|
title: Rate
|
|
---
|
|
|
|
Rate component.
|
|
|
|
## When to use
|
|
|
|
- Show evalutate.
|
|
- 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(value: Number) | callback | Function | - |
|
|
| allowHalf | weather to allow semi selection | Boolean | false |
|
|
| disabled | read only, unable to interact | Boolean | false |
|