Files
ntspi-app/resources/js/componentss/ui/titles/BasicTitle.vue
T
2025-03-23 00:38:16 +05:00

44 lines
602 B
Vue

<template>
<div class="space-y-3">
<h1 class="text-2xl mb-10 font-bold md:text-3xl">{{ header }}</h1>
</div>
</template>
<script>
import {Link} from "@inertiajs/vue3";
import slugify from "slugify";
export default {
name: "BasicTitle",
components: {Link},
data() {
return {
}
},
methods: {
textLimit(text, symbols) {
if (text.length > symbols) {
let LimitedText
LimitedText = text.substring(0, symbols)
return LimitedText + "..."
}
return text
},
},
props: {
header: {
type: String,
required: true
},
},
}
</script>
<style scoped>
</style>