@episclera/uikit
v1.2.0
Published
🐜 UI library based on Ant-Design and TailwindCSS.
Downloads
9
Readme
Usage
Install: npm i @episclera/uikit
- Then in your main layout file (_app.tsx) you need to import preconfigured style files
NOTE: TailwindCSS utils are also included in this file so no need to import something else.
import '@episclera/uikit/styles/main.less'
- Then in your main layout file (_app.tsx) you need to wrapp the entire app in (COnfigProvider and DeviceDetectProvider)
import { withMobileDetect, DeviceDetectProvider } from '@episclera/uikit'
const App = ({ Component, pageProps, deviceContext }) => (
<ConfigProvider>
<DeviceDetectProvider deviceContext={deviceContext}>
<MainLayout>
<Component {...pageProps} />
</MainLayout>
</DeviceDetectProvider>
</ConfigProvider>
)
App.getInitialProps = async appContext =>
await NextApp.getInitialProps(appContext)
export default withMobileDetect(App)
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or you can sponsor via Open Collective
Author
@episclera/uikit © Episclera, Released under the MIT License. Authored and maintained by Episclera with help from contributors (list).