Skip to content

Commit 82f2c2c

Browse files
authored
Rename package from rc-input to @rc-component/input
1 parent ed2479c commit 82f2c2c

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

README.md

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# rc-input ⌨️
1+
# @rc-component/input ⌨️
22

33
[![NPM version][npm-image]][npm-url]
44
[![npm download][download-image]][download-url]
@@ -7,8 +7,8 @@
77
[![bundle size][bundlephobia-image]][bundlephobia-url]
88
[![dumi][dumi-image]][dumi-url]
99

10-
[npm-image]: http://img.shields.io/npm/v/rc-input.svg?style=flat-square
11-
[npm-url]: http://npmjs.org/package/rc-input
10+
[npm-image]: http://img.shields.io/npm/v/@rc-component/input.svg?style=flat-square
11+
[npm-url]: http://npmjs.org/package/@rc-component/input
1212
[travis-image]: https://img.shields.io/travis/react-component/input/master?style=flat-square
1313
[travis-url]: https://travis-ci.com/react-component/input
1414
[github-actions-image]: https://github.com/react-component/input/actions/workflows/main.yml/badge.svg
@@ -19,21 +19,21 @@
1919
[david-image]: https://david-dm.org/react-component/input/status.svg?style=flat-square
2020
[david-dev-url]: https://david-dm.org/react-component/input?type=dev
2121
[david-dev-image]: https://david-dm.org/react-component/input/dev-status.svg?style=flat-square
22-
[download-image]: https://img.shields.io/npm/dm/rc-input.svg?style=flat-square
23-
[download-url]: https://npmjs.org/package/rc-input
24-
[bundlephobia-url]: https://bundlephobia.com/package/rc-input
25-
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/rc-input
22+
[download-image]: https://img.shields.io/npm/dm/@rc-component/input.svg?style=flat-square
23+
[download-url]: https://npmjs.org/package/@rc-component/input
24+
[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/input
25+
[bundlephobia-image]: https://badgen.net/bundlephobia/minzip/@rc-component/input
2626
[dumi-url]: https://github.com/umijs/dumi
2727
[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square
2828

2929
## Install
3030

31-
[![rc-input](https://nodei.co/npm/rc-input.png)](https://npmjs.org/package/rc-input)
31+
[![@rc-component/input](https://nodei.co/npm/@rc-component/input.png)](https://npmjs.org/package/@rc-component/input)
3232

3333
## Usage
3434

3535
```js
36-
import Input from 'rc-input';
36+
import Input from '@rc-component/input';
3737
import { render } from 'react-dom';
3838

3939
render(<Input placeholder="input" allowClear />, mountNode);
@@ -46,9 +46,9 @@ render(<Input placeholder="input" allowClear />, mountNode);
4646
| prefixCls | string | rc-input | |
4747
| className | string | '' | additional class name of input |
4848
| style | React.CSSProperties | | style properties of input |
49-
| affixWrapperClassName | string | - | className with 'rc-input-affix-wrapper' |
50-
| groupClassName | string | - | className with 'rc-input-group-wrapper' |
51-
| wrapperClassName | string | - | className with 'rc-input-wrapper' |
49+
| affixWrapperClassName | string | - | className with '@rc-component/input-affix-wrapper' |
50+
| groupClassName | string | - | className with '@rc-component/input-group-wrapper' |
51+
| wrapperClassName | string | - | className with '@rc-component/input-wrapper' |
5252
| addonAfter | ReactNode | - | The label text displayed after (on the right side of) the input field |
5353
| addonBefore | ReactNode | - | The label text displayed before (on the left side of) the input field |
5454
| allowClear | boolean &#124; { clearIcon: ReactNode } | false | If allow to remove input content with clear icon |
@@ -85,8 +85,6 @@ useEffect(() => {
8585
| blur | `() => void` | The input loses focus when called |
8686
| input | `HTMLInputElement \| null` | The origin input element |
8787

88-
89-
9088
## Development
9189

9290
```
@@ -96,4 +94,4 @@ npm start
9694

9795
## License
9896

99-
rc-input is released under the MIT license.
97+
@rc-component/input is released under the MIT license.

0 commit comments

Comments
 (0)