mirror of
https://github.com/bitinflow/ui.git
synced 2026-04-28 11:56:18 +00:00
31 lines
513 B
Vue
31 lines
513 B
Vue
<template>
|
|
<button
|
|
class="bg-base-700 hover:bg-base-600 rounded-lg text-center p-2 text-white w-32 text-xs grid"
|
|
:class="{ 'bg-red-500 hover:bg-red-400': destructive }"
|
|
>
|
|
<i :class="`fal text-xl ${icon}`" />
|
|
<slot />
|
|
</button>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "BitinflowTableFloatingAction",
|
|
|
|
props: {
|
|
icon: {
|
|
type: String,
|
|
default: 'fa-play'
|
|
},
|
|
destructive: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|