mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 20:20:00 +08:00
77b78a9389
* Unify name of ReactNode type in document * Lowser all string type name * Lowercase all number type name * Lowercase all boolean type name * Unify array type * Lowercase all object type name * Unify mutilple types
24 lines
617 B
Markdown
24 lines
617 B
Markdown
---
|
|
category: Components
|
|
type: Data Entry
|
|
title: 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 | Function(value: number) | - |
|
|
| allowHalf | whether to allow semi selection | boolean | false |
|
|
| disabled | read only, unable to interact | boolean | false |
|