aboutsummaryrefslogtreecommitdiff
path: root/src/ui/demo/demo-wrapper.vue
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2023-04-23 22:26:32 +0200
committerGravatar Corentin THOMASSET <corentin.thomasset74@gmail.com> 2023-04-23 22:43:06 +0200
commit92bd83536fd1ca84e71d27c3682153cc8eb27d84 (patch)
tree55bca29e778aa67dbb9d59f052e20e8433b87169 /src/ui/demo/demo-wrapper.vue
parente88c1d5f2c369e19b60af1f1d6424de74020dd2f (diff)
downloadit-tools-92bd83536fd1ca84e71d27c3682153cc8eb27d84.tar.gz
it-tools-92bd83536fd1ca84e71d27c3682153cc8eb27d84.tar.zst
it-tools-92bd83536fd1ca84e71d27c3682153cc8eb27d84.zip
feat(ui-lib): demo pages for c-lib components
Diffstat (limited to 'src/ui/demo/demo-wrapper.vue')
-rw-r--r--src/ui/demo/demo-wrapper.vue33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ui/demo/demo-wrapper.vue b/src/ui/demo/demo-wrapper.vue
new file mode 100644
index 0000000..cc16a00
--- /dev/null
+++ b/src/ui/demo/demo-wrapper.vue
@@ -0,0 +1,33 @@
+<template>
+ <div mt-2 w-full p-8>
+ <h1>c-lib components</h1>
+
+ <div flex>
+ <div w-30 b-r b-gray b-op-10 b-r-solid pr-4>
+ <c-button
+ v-for="{ name } of demoRoutes"
+ :key="name"
+ variant="text"
+ :to="{ name }"
+ w-full
+ important:justify-start
+ :type="route.name === name ? 'primary' : 'default'"
+ >
+ {{ name }}
+ </c-button>
+ </div>
+
+ <div flex-1 pl-4>
+ <router-view />
+ </div>
+ </div>
+ </div>
+</template>
+
+<script lang="ts" setup>
+import { demoRoutes } from './demo.routes';
+
+const route = useRoute();
+</script>
+
+<style lang="less" scoped></style>