Skip to content

Commit ae19686

Browse files
committed
docs: align readme badge layout
1 parent efca12e commit ae19686

2 files changed

Lines changed: 18 additions & 50 deletions

File tree

README.md

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,18 @@
22
<h1>@rc-component/checkbox</h1>
33
<p><sub><img alt="Ant Design" height="14" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" style="vertical-align: -0.125em;" /> Part of the Ant Design ecosystem.</sub></p>
44
<p>☑️ A small, accessible checkbox primitive for React.</p>
5-
</div>
6-
7-
<p align="center">English | <a href="./README.zh-CN.md">简体中文</a></p>
8-
9-
<div align="center">
10-
11-
[![NPM version][npm-image]][npm-url]
12-
[![npm download][download-image]][download-url]
13-
[![build status][github-actions-image]][github-actions-url]
14-
[![Codecov][codecov-image]][codecov-url]
15-
[![bundle size][bundlephobia-image]][bundlephobia-url]
16-
[![dumi][dumi-image]][dumi-url]
175

6+
<p>
7+
<a href="https://npmjs.org/package/@rc-component/checkbox"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/checkbox.svg?style=flat-square"></a>
8+
<a href="https://npmjs.org/package/@rc-component/checkbox"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/checkbox.svg?style=flat-square"></a>
9+
<a href="https://github.com/react-component/checkbox/actions/workflows/main.yml"><img alt="build status" src="https://github.com/react-component/checkbox/actions/workflows/main.yml/badge.svg"></a>
10+
<a href="https://app.codecov.io/gh/react-component/checkbox"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/checkbox/master.svg?style=flat-square"></a>
11+
<a href="https://bundlephobia.com/package/@rc-component/checkbox"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/checkbox?style=flat-square"></a>
12+
<a href="https://github.com/umijs/dumi"><img alt="dumi" src="https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square"></a>
13+
</p>
1814
</div>
1915

20-
[npm-image]: https://img.shields.io/npm/v/@rc-component/checkbox.svg?style=flat-square
21-
[npm-url]: https://npmjs.org/package/@rc-component/checkbox
22-
[github-actions-image]: https://github.com/react-component/checkbox/actions/workflows/main.yml/badge.svg
23-
[github-actions-url]: https://github.com/react-component/checkbox/actions/workflows/main.yml
24-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/checkbox/master.svg?style=flat-square
25-
[codecov-url]: https://app.codecov.io/gh/react-component/checkbox
26-
[download-image]: https://img.shields.io/npm/dm/@rc-component/checkbox.svg?style=flat-square
27-
[download-url]: https://npmjs.org/package/@rc-component/checkbox
28-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/%40rc-component%2Fcheckbox?style=flat-square
29-
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/checkbox
30-
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
31-
[dumi-url]: https://github.com/umijs/dumi
32-
16+
<p align="center">English | <a href="./README.zh-CN.md">简体中文</a></p>
3317
## Highlights
3418

3519
- Works as a controlled or uncontrolled checkbox.

README.zh-CN.md

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,18 @@
22
<h1>@rc-component/checkbox</h1>
33
<p><sub><img alt="Ant Design" height="14" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" style="vertical-align: -0.125em;" /> Ant Design 生态的一部分。</sub></p>
44
<p>☑️ 轻量、可访问的 React 复选框基础组件。</p>
5-
</div>
6-
7-
<p align="center"><a href="./README.md">English</a> | 简体中文</p>
8-
9-
<div align="center">
10-
11-
[![NPM version][npm-image]][npm-url]
12-
[![npm download][download-image]][download-url]
13-
[![build status][github-actions-image]][github-actions-url]
14-
[![Codecov][codecov-image]][codecov-url]
15-
[![bundle size][bundlephobia-image]][bundlephobia-url]
16-
[![dumi][dumi-image]][dumi-url]
175

6+
<p>
7+
<a href="https://npmjs.org/package/@rc-component/checkbox"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/checkbox.svg?style=flat-square"></a>
8+
<a href="https://npmjs.org/package/@rc-component/checkbox"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/checkbox.svg?style=flat-square"></a>
9+
<a href="https://github.com/react-component/checkbox/actions/workflows/main.yml"><img alt="build status" src="https://github.com/react-component/checkbox/actions/workflows/main.yml/badge.svg"></a>
10+
<a href="https://app.codecov.io/gh/react-component/checkbox"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/checkbox/master.svg?style=flat-square"></a>
11+
<a href="https://bundlephobia.com/package/@rc-component/checkbox"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/checkbox?style=flat-square"></a>
12+
<a href="https://github.com/umijs/dumi"><img alt="dumi" src="https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square"></a>
13+
</p>
1814
</div>
1915

20-
[npm-image]: https://img.shields.io/npm/v/@rc-component/checkbox.svg?style=flat-square
21-
[npm-url]: https://npmjs.org/package/@rc-component/checkbox
22-
[github-actions-image]: https://github.com/react-component/checkbox/actions/workflows/main.yml/badge.svg
23-
[github-actions-url]: https://github.com/react-component/checkbox/actions/workflows/main.yml
24-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/checkbox/master.svg?style=flat-square
25-
[codecov-url]: https://app.codecov.io/gh/react-component/checkbox
26-
[download-image]: https://img.shields.io/npm/dm/@rc-component/checkbox.svg?style=flat-square
27-
[download-url]: https://npmjs.org/package/@rc-component/checkbox
28-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/%40rc-component%2Fcheckbox?style=flat-square
29-
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/checkbox
30-
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
31-
[dumi-url]: https://github.com/umijs/dumi
32-
16+
<p align="center"><a href="./README.md">English</a> | 简体中文</p>
3317
## 特性
3418

3519
- 可作为受控或非受控复选框。

0 commit comments

Comments
 (0)