11<script lang="ts" setup>
2+ import { useColor } from ' @/app/composables/useColor'
23import Button from ' @/ui/components/Button/Button.vue'
34import Slideover from ' @/ui/components/Slideover/Slideover.vue'
45import { ref } from ' vue'
56
7+ const { color } = useColor ()
8+
69const open = ref (false )
710 </script >
811
912<template >
1013 <div class =" flex flex-col gap-4" >
1114 <Slideover title =" Top" description =" This is a top slideover" side =" top" >
12- <Button label =" Open Top" />
15+ <Button :color = " color " label =" Open Top" />
1316 <template #body >
1417 <div class =" h-48 bg-green-500/10" />
1518 </template >
1619 </Slideover >
1720
1821 <Slideover title =" Right" description =" This is a right slideover" side =" right" >
19- <Button label =" Open Right" />
22+ <Button :color = " color " label =" Open Right" />
2023 <template #body >
2124 <div class =" h-full bg-green-500/10" />
2225 </template >
2326 </Slideover >
2427
2528 <Slideover title =" Bottom" description =" This is a bottom slideover" side =" bottom" >
26- <Button label =" Open Bottom" />
29+ <Button :color = " color " label =" Open Bottom" />
2730 <template #body >
2831 <div class =" h-48 bg-green-500/10" />
2932 </template >
3033 </Slideover >
3134
3235 <Slideover title =" Left" description =" This is a left slideover" side =" left" >
33- <Button label =" Open Left" />
36+ <Button :color = " color " label =" Open Left" />
3437 <template #body >
3538 <div class =" h-full bg-green-500/10" />
3639 </template >
@@ -41,34 +44,34 @@ const open = ref(false)
4144 <div class =" h-full bg-green-500/10" />
4245 </template >
4346 </Slideover >
44- <Button label =" Open with v-model" @click =" open = true" />
47+ <Button :color = " color " label =" Open with v-model" @click =" open = true" />
4548
4649 <Slideover title =" Slideover without overlay" :overlay =" false" >
47- <Button label =" Without overlay" />
50+ <Button :color = " color " label =" Without overlay" />
4851 <template #body >
4952 <div class =" h-full bg-green-500/10" />
5053 </template >
5154 </Slideover >
5255
5356 <Slideover title =" Prevent close" prevent-close >
54- <Button label =" Prevent close" />
57+ <Button :color = " color " label =" Prevent close" />
5558 <template #body >
5659 <div class =" h-full bg-green-500/10" />
5760 </template >
5861 </Slideover >
5962
6063 <Slideover title =" Custom close button" >
61- <Button label =" Custom close button" />
64+ <Button :color = " color " label =" Custom close button" />
6265 <template #body >
6366 <div class =" h-full bg-green-500/10" />
6467 </template >
6568 <template #close =" { ui } " >
66- <Button square label =" 🐯" :class =" ui.close({ class: 'bg-green-500/20' })" />
69+ <Button :color = " color " square label =" 🐯" :class =" ui.close({ class: 'bg-green-500/20' })" />
6770 </template >
6871 </Slideover >
6972
7073 <Slideover title =" Without close button" :close =" false" >
71- <Button label =" Without close button" />
74+ <Button :color = " color " label =" Without close button" />
7275 <template #body >
7376 <div class =" h-full bg-green-500/10" />
7477 </template >
0 commit comments