1.2.0 • Published 4 years ago
@episclera/uikit v1.2.0
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).
If you like this repository star⭐ and watch👀 on GitHub
1.2.0
4 years ago
1.1.1
4 years ago
1.1.2
4 years ago
1.1.0
4 years ago
1.0.26
4 years ago
1.0.25
4 years ago
1.0.24
4 years ago
1.0.23
4 years ago
1.0.22
5 years ago
1.0.21
5 years ago
1.0.19
5 years ago
1.0.18
5 years ago
1.0.20
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.11
5 years ago
1.0.12
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.2
5 years ago
1.0.3
5 years ago
1.0.1
5 years ago