Components to quickly render object lists

This commit is contained in:
2026-01-08 20:29:03 +00:00
parent bc73938a0a
commit bab551b950
5 changed files with 130 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<script setup>
import { computed } from "vue";
const props = defineProps({
linkArr: {
type: Array,
required: true,
},
});
const keys = ["name", "link"];
</script>
<template>
<a
class="bdr-2"
v-for="(row, rowIndex) in linkArr"
:key="rowIndex"
:href="row.link"
>
<h2>{{ row.name }}</h2>
</a>
</template>