mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
Update the nuxt3 version. Co-authored-by: Jonathan Adeline <jonathan@baserow.io> Co-authored-by: Bram Wiepjes <bramw@protonmail.com> Co-authored-by: Cezary <cezary@baserow.io> Co-authored-by: Tsering Paljor <tsering@baserow.io> Co-authored-by: Przemyslaw Kukulski <przemyslaw+gh@baserow.io> Co-authored-by: Bram <bram2w@users.noreply.github.com>
32 lines
497 B
Vue
32 lines
497 B
Vue
<template>
|
|
<component
|
|
:is="`h${level}`"
|
|
class="ab-heading"
|
|
:class="`ab-heading--h${level}`"
|
|
>
|
|
<slot></slot>
|
|
</component>
|
|
</template>
|
|
|
|
<script>
|
|
/**
|
|
* @typedef ABHeading
|
|
*/
|
|
|
|
export default {
|
|
name: 'ABHeading',
|
|
props: {
|
|
/**
|
|
* @type {number} - The level of the heading. Can be 1, 2, 3, 4, 5 or 6.
|
|
*/
|
|
level: {
|
|
type: Number,
|
|
default: 1,
|
|
validator(value) {
|
|
return [1, 2, 3, 4, 5, 6].includes(value)
|
|
},
|
|
},
|
|
},
|
|
}
|
|
</script>
|