Components
BaseSectionTitle
A section heading with an optional step number, for long forms split into numbered parts.
components/ui/BaseSectionTitle.vue
View in the demo
Example
Contact details
Checkout, booking and the invoice editor split their form into numbered sections with it. Give the title an id and the <section> aria-labelledby, so screen readers announce the section by its title. Without number it is a plain heading.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
title | string | — | The heading text. |
number | string | number | — | The step number in the tile before the title; leave it out for a plain heading. |
id | string | — | The heading id, so the section can point to it with aria-labelledby. |
title-tag | string | "h2" | The heading element. |
Slots
Name | Slot props | Description |
|---|---|---|
#default | — | Replaces the title text. |