mitlist/fe/src/components/valerie/VList.vue

32 lines
956 B
Vue

<template>
<ul class="item-list">
<slot></slot>
</ul>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'VList',
// No props defined for VList for now
});
</script>
<style lang="scss" scoped>
.item-list {
list-style: none; // Remove default ul styling
padding: 0;
margin: 0;
// Add any list-wide styling, e.g., borders between items if not handled by VListItem
// For example, if VListItems don't have their own bottom border:
// > ::v-deep(.list-item:not(:last-child)) {
// border-bottom: 1px solid #eee;
// }
// However, it's often better for VListItem to manage its own borders for more flexibility.
background-color: #fff; // Default background for the list area
border-radius: 0.375rem; // Optional: if the list itself should have rounded corners
overflow: hidden; // If list items have rounded corners and list has bg, this prevents bleed
}
</style>