feat: add search token card
Co-authored-by: RcleydsonR <rafael.cleydson@gmail.com>
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
<script setup lang="ts">
|
||||
const props = defineProps({
|
||||
text: String,
|
||||
isDisabled: Boolean
|
||||
})
|
||||
isDisabled: Boolean,
|
||||
});
|
||||
|
||||
const emit = defineEmits(['clicked'])
|
||||
const emit = defineEmits(["clicked"]);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<button type="button" class="button" @click="emit('clicked')" v-bind:class="{'opacity-70': isDisabled}" :disabled="isDisabled">
|
||||
{{ text }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="button"
|
||||
@click="emit('clicked')"
|
||||
v-bind:class="{ 'opacity-70': isDisabled }"
|
||||
:disabled="isDisabled"
|
||||
>
|
||||
{{ text }}
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user