create button component

This commit is contained in:
Geriano
2022-07-30 10:38:28 +07:00
parent ef79fd9451
commit ff54776fc4
10 changed files with 121 additions and 92 deletions

View File

@@ -0,0 +1,9 @@
<script setup>
import Button from '../Button.vue'
</script>
<template>
<Button class="bg-blue-600 hover:bg-blue-700 active:bg-blue-800">
<slot />
</Button>
</template>

View File

@@ -0,0 +1,7 @@
<script setup>
import Icon from '@/Components/Icon.vue'
</script>
<template>
<Icon name="times" class="px-2 py-1 bg-gray-300 hover:bg-gray-100 dark:bg-gray-700 dark:hover:bg-gray-600 dark:active:bg-gray-800 border border-transparent dark:active:border-gray-600 rounded-md transition-all duration-300 cursor-pointer" />
</template>

View File

@@ -0,0 +1,9 @@
<script setup>
import Button from '../Button.vue'
</script>
<template>
<Button class="bg-gray-800 hover:bg-gray-600 active:bg-gray-800">
<slot />
</Button>
</template>

View File

@@ -0,0 +1,9 @@
<script setup>
import Button from '../Button.vue'
</script>
<template>
<Button class="bg-green-600 hover:bg-green-700 active:bg-green-800">
<slot />
</Button>
</template>

View File

@@ -0,0 +1,9 @@
<script setup>
import Button from '../Button.vue'
</script>
<template>
<Button class="bg-red-600 hover:bg-red-700 active:bg-red-800">
<slot />
</Button>
</template>