Skip to content

Commit 442e321

Browse files
committed
docs: align readme badge layout
1 parent 878f4a8 commit 442e321

2 files changed

Lines changed: 18 additions & 48 deletions

File tree

README.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@
22
<h1>@rc-component/input</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>📦 ⌨️ Low-level React input primitives for building polished text fields and textareas.</p>
5+
6+
<p>
7+
<a href="https://npmjs.org/package/@rc-component/input"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/input.svg?style=flat-square"></a>
8+
<a href="https://npmjs.org/package/@rc-component/input"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/input.svg?style=flat-square"></a>
9+
<a href="https://github.com/react-component/input/actions/workflows/react-component-ci.yml"><img alt="build status" src="https://github.com/react-component/input/actions/workflows/react-component-ci.yml/badge.svg"></a>
10+
<a href="https://app.codecov.io/gh/react-component/input"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/input/master.svg?style=flat-square"></a>
11+
<a href="https://bundlephobia.com/package/@rc-component/input"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/input?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>
514
</div>
615

716
<p align="center">English | <a href="./README.zh-CN.md">简体中文</a></p>
817

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]
17-
18-
</div>
19-
2018
## Highlights
2119

2220
- Composable `Input`, `TextArea`, and `BaseInput` primitives.
@@ -151,16 +149,3 @@ The release flow is handled by `@rc-component/np` through the `rc-np` command af
151149
## License
152150

153151
@rc-component/input is released under the [MIT](./LICENSE) license.
154-
155-
[npm-image]: https://img.shields.io/npm/v/@rc-component/input.svg?style=flat-square
156-
[npm-url]: https://npmjs.org/package/@rc-component/input
157-
[github-actions-image]: https://github.com/react-component/input/actions/workflows/react-component-ci.yml/badge.svg
158-
[github-actions-url]: https://github.com/react-component/input/actions/workflows/react-component-ci.yml
159-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/input/master.svg?style=flat-square
160-
[codecov-url]: https://app.codecov.io/gh/react-component/input
161-
[download-image]: https://img.shields.io/npm/dm/@rc-component/input.svg?style=flat-square
162-
[download-url]: https://npmjs.org/package/@rc-component/input
163-
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/input
164-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/@rc-component/input?style=flat-square
165-
[dumi-url]: https://github.com/umijs/dumi
166-
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square

README.zh-CN.md

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,19 @@
22
<h1>@rc-component/input</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+
6+
<p>
7+
<a href="https://npmjs.org/package/@rc-component/input"><img alt="NPM version" src="https://img.shields.io/npm/v/@rc-component/input.svg?style=flat-square"></a>
8+
<a href="https://npmjs.org/package/@rc-component/input"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@rc-component/input.svg?style=flat-square"></a>
9+
<a href="https://github.com/react-component/input/actions/workflows/react-component-ci.yml"><img alt="build status" src="https://github.com/react-component/input/actions/workflows/react-component-ci.yml/badge.svg"></a>
10+
<a href="https://app.codecov.io/gh/react-component/input"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/react-component/input/master.svg?style=flat-square"></a>
11+
<a href="https://bundlephobia.com/package/@rc-component/input"><img alt="bundle size" src="https://img.shields.io/bundlephobia/minzip/@rc-component/input?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>
514
</div>
615

716
<p align="center"><a href="./README.md">English</a> | 简体中文</p>
817

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]
17-
18-
</div>
19-
2018
## 特性
2119

2220
- 提供可组合的 `Input``TextArea``BaseInput` 基础组件。
@@ -151,16 +149,3 @@ npm run prepublishOnly
151149
## 许可证
152150

153151
@rc-component/input 基于 [MIT](./LICENSE) 许可证发布。
154-
155-
[npm-image]: https://img.shields.io/npm/v/@rc-component/input.svg?style=flat-square
156-
[npm-url]: https://npmjs.org/package/@rc-component/input
157-
[github-actions-image]: https://github.com/react-component/input/actions/workflows/react-component-ci.yml/badge.svg
158-
[github-actions-url]: https://github.com/react-component/input/actions/workflows/react-component-ci.yml
159-
[codecov-image]: https://img.shields.io/codecov/c/github/react-component/input/master.svg?style=flat-square
160-
[codecov-url]: https://app.codecov.io/gh/react-component/input
161-
[download-image]: https://img.shields.io/npm/dm/@rc-component/input.svg?style=flat-square
162-
[download-url]: https://npmjs.org/package/@rc-component/input
163-
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/input
164-
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/@rc-component/input?style=flat-square
165-
[dumi-url]: https://github.com/umijs/dumi
166-
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square

0 commit comments

Comments
 (0)