From 3658bd01bcb8a31a5bc806fc21ec7aff03d1cb16 Mon Sep 17 00:00:00 2001 From: HoukasaurusRex Date: Tue, 16 Mar 2021 11:45:13 +0800 Subject: [PATCH] docs: update vuepress docs with codesandbox starter --- website/pages/with-vuepress.mdx | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/website/pages/with-vuepress.mdx b/website/pages/with-vuepress.mdx index 9e47cf92..982ebbfd 100644 --- a/website/pages/with-vuepress.mdx +++ b/website/pages/with-vuepress.mdx @@ -74,7 +74,7 @@ export default ({ } } }) -}) +} ``` 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 { ## Using Chakra components -_In your `App.vue` file._ +You can now use Chakra in your custom components for your theme in either your `theme/components` folder (available to other theme components), +or your `theme/global-components` folder (available to your markdown pages as well as other components). +Learn more about theme inheritance in the [Vuepress documentation](https://vuepress.vuejs.org/theme/inheritance.html#inheritance-strategy) + +_In your `my-component.vue` file._ ```vue