<template>
  <ul class="rendered-list" :style="component.style">
    <li v-for="(item, index) in component.items" :key="index">{{ item }}</li>
    <li v-if="!component.items || component.items.length === 0">Item 1</li>
    <li v-if="!component.items || component.items.length === 0">Item 2</li>
  </ul>
</template>

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

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

<style scoped>
.rendered-list {
  width: 100%;
  height: 100%;
  list-style-position: inside;
  padding: 1rem;
  box-sizing: border-box;
  color: var(--text-color);
  background-color: var(--panel-color); /* Added for better visibility */
  border: 1px solid var(--border-color); /* Added for better visibility */
  border-radius: var(--border-radius); /* Added for rounded corners */
}
</style>
