<template>
  <button :style="component.style">{{ component.text }}</button>
</template>

<script setup>
import { defineProps } from 'vue';

const props = defineProps({
  component: Object,
});
</script>

<style scoped>
button {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  white-space: pre-wrap;
  word-break: break-word;
  border: none;
  background-color: #007bff; /* Default button color */
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
}
</style>
