LeadingText
The kit's primary heading: a capitalized <h1> with responsive sizing — used by AuthHeader, page sections and anywhere a title should read as a title without any heading-level plumbing.
vue
<script setup lang="ts">
import RyderLeadingText from "@opeolluwa/ryder/components/typography/LeadingText.vue"
</script>
<template>
<RyderLeadingText>order #1042 is on the way</RyderLeadingText>
</template>Examples
vue
<script setup lang="ts">
import LeadingText from "../../../src/components/typography/LeadingText.vue";
import SubText from "../../../src/components/typography/SubText.vue";
</script>
<template>
<div class="max-w-xl space-y-1">
<LeadingText>order #1042 is on the way</LeadingText>
<SubText>
The courier picked it up this morning; it is due before 5 pm today.
</SubText>
</div>
</template>Props
None.
Emits
None.
Slots
| Slot | Props | Content |
|---|---|---|
default | — | Heading text. |
Notes
- Always renders an
<h1>withfirst-letter:capitalize,text-2xl lg:text-3xlandfont-semibold. If the surrounding page already has anh1, nest this where your heading order allows (or use it once per page).