7
7
<a href =" https://github.com/pknu-wap/wap-ui/blob/main/LICENSE " >
8
8
<img src="https://badgen.net/github/license/pknu-wap/wap-ui">
9
9
</a >
10
- <a href =" https://www.npmjs.com/package/@ wap-ui/react " >
11
- <img src="https://img.shields.io/npm/dm/@ wap-ui/react .svg?style=flat-round" alt="npm downloads">
10
+ <a href =" https://www.npmjs.com/package/wap-ui " >
11
+ <img src="https://img.shields.io/npm/dm/wap-ui.svg?style=flat-round" alt="npm downloads">
12
12
</a >
13
13
<img alt =" Github Stars " src =" https://badgen.net/github/stars/pknu-wap/wap-ui " />
14
14
<img src =" https://badgen.net/github/release/pknu-wap/wap-ui " >
41
41
42
42
## ` Installing WAP-UI `
43
43
44
- To use WAP UI, Install the ` @ wap-ui/react ` package and its peer dependencies.
44
+ To use WAP UI, Install the ` wap-ui ` package and its peer dependencies.
45
45
(` @emotion/react ` , ` @emotion/styled ` , ` framer-motion ` )
46
46
47
47
``` sh
48
- pnpm add @ wap-ui/react @emotion/react @emotion/styled framer-motion
48
+ pnpm add wap-ui @emotion/react @emotion/styled framer-motion
49
49
# or
50
- yarn add @ wap-ui/react @emotion/react @emotion/styled framer-motion
50
+ yarn add wap-ui @emotion/react @emotion/styled framer-motion
51
51
# or
52
- npm i @ wap-ui/react @emotion/react @emotion/styled framer-motion
52
+ npm i wap-ui @emotion/react @emotion/styled framer-motion
53
53
```
54
54
55
55
## ` Usage `
56
56
57
57
To start using the components, follow these steps:
58
58
59
- 1 . For WAP UI to work correctly, Wrap ` WapUIProvider ` provided by ` @ wap-ui/react ` at root of your application.
59
+ 1 . For WAP UI to work correctly, Wrap ` WapUIProvider ` provided by ` wap-ui ` at root of your application.
60
60
61
61
``` tsx
62
62
import React from ' react' ;
63
63
64
64
// 1. import `WapUIProvider` component
65
65
import ReactDOM from ' react-dom/client' ;
66
66
import App from ' ./App' ;
67
- import { WapUIProvider } from ' @ wap-ui/react ' ;
67
+ import { WapUIProvider } from ' wap-ui' ;
68
68
69
69
// 2. Wrap WapUIProvider at the root of your app
70
70
ReactDOM .createRoot (document .getElementById (' root' ) as HTMLElement ).render (
@@ -77,7 +77,7 @@ ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
77
77
2 . Bring components what you want and use them.
78
78
79
79
``` tsx
80
- import { Button } from ' @ wap-ui/react ' ;
80
+ import { Button } from ' wap-ui' ;
81
81
82
82
const Home = () => {
83
83
return (
@@ -143,7 +143,7 @@ export default Home;
143
143
## ` Links `
144
144
145
145
- #### [ Documents] ( https://github.com/pknu-wap/wap-ui/tree/main/docs )
146
- - #### [ NPM] ( https://www.npmjs.com/package/@ wap-ui/react )
146
+ - #### [ NPM] ( https://www.npmjs.com/package/wap-ui )
147
147
- #### [ Playground] ( https://wap-ui.vercel.app/ )
148
148
- #### [ Presentations] ( https://github.com/pknu-wap/wap-ui/tree/main/ppt )
149
149
- #### [ Example] ( https://github.com/pknu-wap/wap-ui/tree/main/example )
0 commit comments