koel/resources/assets/js/components/ui/album-artist/ExpandableContentBlock.vue

20 lines
400 B
Vue
Raw Normal View History

2024-04-04 22:20:42 +00:00
<template>
<article>
<div :class="showingFull ? 'line-clamp-none' : 'line-clamp-[10]'">
<slot />
</div>
2024-04-23 21:01:27 +00:00
<Btn v-if="!showingFull" class="mt-4" small @click.prevent="showingFull = true">
2024-04-04 22:20:42 +00:00
Read More
</Btn>
</article>
</template>
2024-04-23 21:01:27 +00:00
<script lang="ts" setup>
2024-04-04 22:20:42 +00:00
import { ref } from 'vue'
import Btn from '@/components/ui/form/Btn.vue'
const showingFull = ref(false)
</script>