Demo
Installing WAP-UI
To use WAP UI, Install the wap-ui
package and its peer dependencies.
(@emotion/react
, @emotion/styled
, framer-motion
)
pnpm add wap-ui @emotion/react @emotion/styled framer-motion
# or
yarn add wap-ui @emotion/react @emotion/styled framer-motion
# or
npm i wap-ui @emotion/react @emotion/styled framer-motion
Usage
To start using the components, follow these steps:
WapUIProvider
provided by wap-ui
at root of your application.import React from 'react';
// 1. import `WapUIProvider` component
import ReactDOM from 'react-dom/client';
import App from './App';
import { WapUIProvider } from 'wap-ui';
// 2. Wrap WapUIProvider at the root of your app
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<WapUIProvider>
<App />
</WapUIProvider>,
);
import { Button } from 'wap-ui';
const Home = () => {
return (
<Button size="md" color="success" shadow>
버튼
</Button>
);
};
export default Home;
Contributors
Links