<template>
  <div class="rendered-grid" :style="component.style">
    {{ component.text || 'Grid' }}
    <!-- This component might contain nested components or define a grid layout -->
  </div>
</template>

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

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

<style scoped>
.rendered-grid {
  width: 100%;
  height: 100%;
  display: flex; /* Or grid display depending on implementation */
  justify-content: center;
  align-items: center;
  border: 1px dashed var(--border-color);
  color: var(--text-color-darker);
  background-color: var(--bg-color); /* Added for better visibility */
  box-sizing: border-box;
  border-radius: var(--border-radius); /* Added for rounded corners */
}
</style>
