Heading
Renders a semantic heading element from <h1> through <h6>, with vertical spacing reset.
Usage
<template>
<Heading>Main Title</Heading>
</template>
This renders an <h1> tag with the default class m-0 to reset the margins.
Custom level
Use the level prop to render different heading levels:
<template>
<Heading :level="2" class="text-xl text-slate-700">Subtitle</Heading>
</template>
Props
level
Type: String | Number
Default: 1
The heading level to render, from 1 to 6. Can be passed as a number or string.
emails/example.vue
<template>
<Heading>H1 heading</Heading>
<Heading :level="2">H2 heading</Heading>
<Heading level="3">H3 heading</Heading>
</template>