diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index b9432c94..1ddc5daf 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -1,6 +1,7 @@ -import Theme from "@nativescript/vitepress-theme"; -import "@nativescript/vitepress-theme/theme/style.css"; +import Theme from '@nativescript/vitepress-theme' +import '@nativescript/vitepress-theme/theme/style.css' export default { ...Theme(), -}; + enhanceApp() {}, +} diff --git a/content/guide/create-custom-native-elements.md b/content/guide/create-custom-native-elements.md index 430db181..c64ab922 100644 --- a/content/guide/create-custom-native-elements.md +++ b/content/guide/create-custom-native-elements.md @@ -240,14 +240,15 @@ Let's create a `` component that behaves consistently on iOS and Andro -See the full working example on StackBlitz: +See the full working example on StackBlitz: + - Angular: https://stackblitz.com/edit/nativescript-create-custom-elements-checkbox?file=src%2Fapp%2Fcheckbox%2Fcommon.ts - React: https://stackblitz.com/edit/nativescript-create-custom-elements-checkbox-react?file=src%2Fcomponents%2FScreenOne.tsx - Solid: https://stackblitz.com/edit/nativescript-create-custom-elements-checkbox-solid?file=src%2Fcomponents%2Fhome.tsx - Svelte: https://stackblitz.com/edit/nativescript-create-custom-elements-checkbox-svelte?file=app%2Fcomponents%2FHome.svelte - TypeScript: https://stackblitz.com/edit/nativescript-create-custom-elements-checkbox-ts?file=app%2Fmain-page.xml - Vue: https://stackblitz.com/edit/nativescript-create-custom-elements-checkbox-vue?file=src%2Fcomponents%2FHome.vue - + In NativeScript, creating custom UI components can be straightforward and powerful. In this guide, you'll learn how to build a simple, reusable Checkbox component using only built-in modules from `@nativescript/core`. We'll leverage a combination of `GridLayout`, `Label`, and Material Design icons. ### Step-by-Step Guide