mirror of
https://github.com/bitinflow/ui.git
synced 2026-04-28 11:56:18 +00:00
Add dropdown (in-dev)
This commit is contained in:
30
src/runtime/components/BitinflowTableFloatingAction.vue
Normal file
30
src/runtime/components/BitinflowTableFloatingAction.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user