Headline

Component for headlines.

The main task of the <Headline> component is to serve as a title of a content section. It should be used when you want to structure different parts of informations. That could be the page title, text headings or the title of different content parts.

The component has a level property that allows you to select a number from 1-6. This is a feature for SEO optimization, so that a rendered level="5" can look like a HTML H2 element.

Alternatively you can set this with the size prop. With the size prop you can style the different levels.

Import

import { Headline } from '@marigold/components';

Appearance

PropertyTypeDescription
variant-The available variants of this component.
sizelevel-1 | level-2 | level-3 | level-4 | level-5 | level-6The available sizes of this component.

Props

PropertyTypeDefaultDescription
levelnumber1Set a different level from theme, values are from 1 - 6.
alignleft | center | right-Set the align of the headline.
colorstring-Set the color of the headline.

Examples

Headline with Text

In this example you see a simple headline with some text.

Awesome Headline!

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.