refactor: organize componentes files

This commit is contained in:
Jefferson Mantovani
2025-10-08 20:29:51 -03:00
parent 13c0fcc681
commit c58e91e073
19 changed files with 12714 additions and 434 deletions

View File

@@ -0,0 +1,26 @@
<script setup lang="ts">
const props = defineProps({
text: String,
isDisabled: Boolean,
});
const emit = defineEmits(["buttonClicked"]);
</script>
<template>
<button
type="button"
class="button"
@click="emit('buttonClicked')"
v-bind:class="{ 'opacity-70': props.isDisabled }"
:disabled="props.isDisabled ? props.isDisabled : false"
>
{{ props.text }}
</button>
</template>
<style scoped>
.button {
@apply rounded-lg w-full text-base font-semibold text-gray-900 p-4 bg-amber-400;
}
</style>