@chakra-ui/nuxt
Chakra UI Module for Nuxt.js
5,488
1,844
| Install | |
|---|---|
npm install @chakra-ui/nuxt |
|
| Latest Version: | 0.7.1 |
| Vue: | 2 · 3 |
| License: | MIT |
| Last Updated: | Jul 19, 2023 |
| Links: | GitHub · npm |
Maintainer: segunadebayo
@chakra-ui/nuxt
Chakra UI Module for Nuxt.js
Looking for documentation?
Setup
- Add
@chakra-ui/nuxtdependency to your project
yarn add @chakra-ui/nuxt @nuxtjs/emotion
- Add
@chakra-ui/nuxt&@nuxtjs/emotionto themodulessection ofnuxt.config.js
// nuxt.config.js
export default {
modules: [
'@chakra-ui/nuxt',
'@nuxtjs/emotion'
],
/**
* Add extend the plugin options under the `chakra` key.
**/
chakra: {
extendTheme: {
colors: {
brand: { /* ... */ }
}
}
}
}
- Wrap your default layout in
layouts/directory inside CThemeProvider as seen in the Chakra UI docs to start consuming Chakra Components. Like so:
<template>
<c-theme-provider>
<c-reset/>
<nuxt/>
</c-theme-provider>
</template>
<script>
import {
CThemeProvider,
CReset,
CButton
} from "@chakra-ui/vue";
export default {
name: 'DefaultLayout',
components: {
CThemeProvider,
CReset,
}
};
</script>
Development
- Clone this repository
- Install dependencies using
yarn bootstrap - Start development server using
yarn dev
License
Copyright (c) Kelvin Omereshone kelvinomereshone@gmail.com
Related Packages
@chakra-ui/c-color-mode
16,157
251
Version History
| Version | Released | License |
|---|---|---|
| 0.7.1 | MIT | |
| 0.7.0 | MIT | |
| 0.6.0 | MIT | |
| 0.5.0 | MIT | |
| 0.4.2 | MIT | |
| 0.4.1 | MIT | |
| 0.3.5 | MIT | |
| 0.3.4 | MIT | |
| 0.3.3 | MIT | |
| 0.3.2 | MIT | |
| 0.3.1 | MIT | |
| 0.3.0 | MIT | |
| 0.2.4 | MIT | |
| 0.2.3 | MIT | |
| 0.2.2 | MIT | |
| 0.2.1 | MIT | |
| 0.2.0 | MIT | |
| 0.1.0 | MIT | |
| 0.0.13 | MIT | |
| 0.0.12 | MIT | |
| 0.0.11 | MIT | |
| 0.0.10 | MIT | |
| 0.0.9 | MIT | |
| 0.0.8 | MIT | |
| 0.0.7 | MIT | |
| 0.0.6 | MIT | |
| 0.0.5 | MIT | |
| 0.0.4 | MIT | |
| 0.0.3 | MIT | |
| 0.0.2 | MIT |
Showing the latest 30 of 31. See every release on npm
Pre-releases (9)
| Version | Released | License |
|---|---|---|
| 0.4.2-next.0 | MIT | |
| 0.2.5-next.0 | MIT | |
| 0.2.3-next.0 | MIT | |
| 0.2.2-next.0 | MIT | |
| 0.2.0-next.2 | MIT | |
| 0.2.0-next.0 | MIT | |
| 0.0.10-next.0 | MIT | |
| 0.0.5-next.0 | MIT | |
| 0.0.3-next.0 | MIT |