Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 3658bd0

Browse files
docs: update vuepress docs with codesandbox starter
1 parent 38a873b commit 3658bd0

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

website/pages/with-vuepress.mdx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default ({
7474
}
7575
}
7676
})
77-
})
77+
}
7878
```
7979

8080
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 {
105105

106106
## Using Chakra components
107107

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._
109113

110114
```vue
111115
<template>
@@ -120,11 +124,21 @@ _In your `App.vue` file._
120124
import { CBox, CButton } from '@chakra-ui/vue'
121125
122126
export default {
123-
name: 'App',
127+
name: 'MyComponent',
124128
components: {
125129
CBox,
126130
CButton
127131
}
128132
}
129133
</script>
130134
```
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)!

0 commit comments

Comments
 (0)