This repository was archived by the owner on Sep 20, 2024. It is now read-only.
File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export default ({
74
74
}
75
75
}
76
76
})
77
- })
77
+ }
78
78
```
79
79
80
80
Now you can wrap your main application inside the Chakra ` CThemeProvider ` component by creating a layout wrapper in ` theme/layouts/Layout.vue ` .
@@ -105,7 +105,11 @@ export default {
105
105
106
106
## Using Chakra components
107
107
108
- _ In your ` App.vue ` file._
108
+ You can now use Chakra in your custom components for your theme in either your ` theme/components ` folder (available to other theme components),
109
+ or your ` theme/global-components ` folder (available to your markdown pages as well as other components).
110
+ Learn more about theme inheritance in the [ Vuepress documentation] ( https://vuepress.vuejs.org/theme/inheritance.html#inheritance-strategy )
111
+
112
+ _ In your ` my-component.vue ` file._
109
113
110
114
``` vue
111
115
<template>
@@ -120,11 +124,21 @@ _In your `App.vue` file._
120
124
import { CBox, CButton } from '@chakra-ui/vue'
121
125
122
126
export default {
123
- name: 'App ',
127
+ name: 'MyComponent ',
124
128
components: {
125
129
CBox,
126
130
CButton
127
131
}
128
132
}
129
133
</script>
130
134
```
135
+
136
+ ### Vuepress Codesandbox Starters
137
+
138
+ Here's a link to sample component starter with Nuxt.js
139
+
140
+ - [ Vuepress Starter] ( https://codesandbox.io/s/chakra-ui-vuepress-starter-qx4up )
141
+
142
+ ### Storybook Components
143
+
144
+ You can also view all developed components in [ Storybook] ( https://chakra-ui-vue.netlify.com ) !
You can’t perform that action at this time.
0 commit comments