2022-09-05 07:36:22 -07:00
|
|
|
<template>
|
|
|
|
<div class="titled-list">
|
|
|
|
<p v-text="title" />
|
|
|
|
<ul>
|
2023-12-28 00:49:58 -08:00
|
|
|
<li v-for="item in items" :key="item" class="titled-list-item" v-html="item" />
|
2022-09-05 07:36:22 -07:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2024-06-03 01:04:13 -07:00
|
|
|
import { type PropType, defineComponent } from 'vue';
|
2022-09-05 07:36:22 -07:00
|
|
|
|
2023-04-21 08:51:08 -07:00
|
|
|
export default defineComponent({
|
2022-09-05 07:36:22 -07:00
|
|
|
name: 'TitledList',
|
|
|
|
props: {
|
|
|
|
title: {
|
|
|
|
type: String,
|
2024-06-03 01:04:13 -07:00
|
|
|
required: true,
|
2022-09-05 07:36:22 -07:00
|
|
|
},
|
|
|
|
items: {
|
2024-06-03 01:04:13 -07:00
|
|
|
type: Array as PropType<string[]>,
|
2022-09-05 07:36:22 -07:00
|
|
|
default: () => [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.titled-list {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.titled-list-item {
|
|
|
|
list-style: none;
|
|
|
|
padding-left: var(--spacing-3xs);
|
|
|
|
&::before {
|
|
|
|
content: '- ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|