Skip to content

Commit 6eace18

Browse files
committed
feat: add ToDoExampleHelp and preview components
1 parent 62be6b4 commit 6eace18

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<script setup lang="ts">
2+
import Todo from '@/components/Todo.vue'
3+
4+
extendCompodiumMeta({
5+
defaultProps: {
6+
text: 'Help',
7+
icon: 'i-mdi-help-circle-outline',
8+
},
9+
})
10+
</script>
11+
12+
<template>
13+
<Todo>Some Help Text</Todo>
14+
</template>

compodium/preview.vue

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<script setup lang="ts">
2+
3+
</script>
4+
5+
<template>
6+
<div id="workspace" class="mt-40">
7+
<div class="card">
8+
<slot />
9+
</div>
10+
</div>
11+
</template>
12+
13+
<style lang='scss'>
14+
@use '../app/App.scss';
15+
16+
#workspace {
17+
padding-left: 0;
18+
margin-right: 30px;
19+
}
20+
21+
#workspace.collapsed {
22+
padding-left: 0;
23+
}
24+
25+
#workspace.onmobile {
26+
padding-left: 0;
27+
}
28+
</style>

0 commit comments

Comments
 (0)