Skip to content

Commit 7f61b6d

Browse files
committed
docs: refine README usage and ecosystem note
1 parent a31c8fc commit 7f61b6d

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
<div align="center">
22
<h1>@rc-component/rate</h1>
3+
<p><sub>Part of the Ant Design ecosystem.</sub></p>
34
<p>⭐ Accessible React rating component with half-star and keyboard support.</p>
4-
5-
<p>
6-
<a href="https://ant.design">
7-
<img width="32" height="32" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" alt="Ant Design" />
8-
</a>
9-
</p>
105
<p>
116
Part of the <a href="https://ant.design">Ant Design</a> ecosystem
127
</p>
@@ -21,14 +16,6 @@
2116
</p>
2217
</div>
2318

24-
<p align="center">
25-
<sub>
26-
<a href="https://ant.design">
27-
<img alt="Ant Design" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" height="16">
28-
</a>
29-
Part of the Ant Design ecosystem.
30-
</sub>
31-
</p>
3219

3320
## Highlights
3421

@@ -47,15 +34,11 @@ npm install @rc-component/rate
4734

4835
```tsx | pure
4936
import Rate from '@rc-component/rate';
50-
import React from 'react';
51-
5237
export default () => <Rate defaultValue={2.5} allowHalf />;
5338
```
5439

5540
```tsx | pure
5641
import Rate from '@rc-component/rate';
57-
import React from 'react';
58-
5942
export default () => (
6043
<Rate
6144
count={5}

0 commit comments

Comments
 (0)