2022-09-05 07:36:22 -07:00
|
|
|
<template>
|
|
|
|
<div class="titled-list">
|
|
|
|
<p v-text="title" />
|
|
|
|
<ul>
|
|
|
|
<li v-for="item in items" class="titled-list-item" :key="item" v-text="item" />
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
2022-12-14 01:04:10 -08:00
|
|
|
name: 'TitledList',
|
2022-09-05 07:36:22 -07:00
|
|
|
props: {
|
|
|
|
title: {
|
|
|
|
type: String,
|
|
|
|
},
|
|
|
|
items: {
|
|
|
|
type: Array,
|
|
|
|
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 {
|
2022-12-14 01:04:10 -08:00
|
|
|
content: '- ';
|
2022-09-05 07:36:22 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|