Title With Text
Title With Text
<TitleWithText> renders a title followed by body text, and optionally a call-to-action button. It is one of the most-used building blocks for React pages.
Basic Usage
<TitleWithText
title="What is Cardano?"
description="A proof-of-stake blockchain platform for changemakers, innovators, and visionaries."
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | The heading. Rendered as an <h1>, so treat it as the primary heading of its section. | |
description | string | array | object | Body content (see formats below). | |
titleType | "red" | "green" | (other) | black | Title color. Any other value renders the default black. |
headingDot | boolean | false | Adds the decorative leading dot to the title. |
slightText | string[] | Extra muted lines rendered below the description. | |
buttonLabel | string | Call-to-action label. Requires buttonLink to appear. | |
buttonLink | string | Destination for the button. Requires buttonLabel. | |
headingLevel | number | 1 | Heading level of the title, 1 to 6. The look stays the same, so the level can follow the page outline, for example 2 below a page hero. |
className | string | - | Extra class on the outer element. |