1.2.0 • Published 3 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
3 years ago
1.1.1
3 years ago
1.1.2
3 years ago
1.1.0
3 years ago
1.0.26
3 years ago
1.0.25
3 years ago
1.0.24
3 years ago
1.0.23
3 years ago
1.0.22
3 years ago
1.0.21
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.20
3 years ago
1.0.17
3 years ago
1.0.16
3 years ago
1.0.15
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.11
3 years ago
1.0.12
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.2
4 years ago
1.0.3
4 years ago
1.0.1
4 years ago