@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?

See Documentation site here

Setup

  1. Add @chakra-ui/nuxt dependency to your project
yarn add @chakra-ui/nuxt @nuxtjs/emotion
  1. Add @chakra-ui/nuxt & @nuxtjs/emotion to the modules section of nuxt.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: { /* ... */ }
      }
    }
  }
}
  1. 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

  1. Clone this repository
  2. Install dependencies using yarn bootstrap
  3. Start development server using yarn dev

License

MIT License

Copyright (c) Kelvin Omereshone kelvinomereshone@gmail.com

Related Packages

@chakra-ui/theme-vue

Default theme for @chakra-ui/vue default theme object

34,377 1,844
@chakra-ui/vue-utils

Chakra UI Vue | Utils module

20,334 251
@chakra-ui/vue-system

Chakra UI Vue | System module

16,829 251
@chakra-ui/c-alert

Chakra UI Vue | CAlert component

13,458 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
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