# ContentPageTitle
The ContentPageTitle component brings the <h1> to the pages and should therefore be placed at the beginning of a nuxt-starter/pages component.
Storyblok
This is not a standalone component in Storyblok. The data should comes from a entry type component like LayoutPageor directly from a nuxt-starter/pages component.
# Dependencies
None.
# Required by
- LayoutPage
nuxt-starter/pagescomponents
# Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| title | String | true | - | <h1> |
# Variants
None.
# Example
Good
<!-- Pass the title as a string through the prop "title" -->
<ContentPageTitle title="About us" />
<!-- As used in LayoutPage -->
<ContentPageTitle :title="title" />
<!-- When directly used in a page component. -->
<ContentPageTitle :title="story.content.title" />
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Bad
<!-- Use the prop title for passing the title.
This Component does not have a slot. -->
<ContentPageTitle>
{{ title }}
</ContentPageTitle>
1
2
3
4
5
2
3
4
5