You are currently viewing outdated (<=3.x) Chameleon documentation on our old website. For version >=4.x, check out our new website.

Current release: 3.5.0 | hub

components

BrandedHeading (code)

A branded heading gives brands deeper customisation possibilities to brands.

A header that contains built-in branding

import { BrandedHeading } from '@mediahuis/chameleon-react'

Props

NameTypeDefaultRequiredDescription
appearance'primary''secondary''primary'-Controls the BrandedHeading’s visual style.
asString'h1'-Change the rendered HTML tag e.g. span, p, h1.
childrenNode-trueContent displayed within the component.
size'small''large''large'-Changes the BrandedHeading’s visual size.

System Props

System Props

Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.

To read more about the system, click here to check out its dedicated page.

Action

default: undefined

Link to a different page, or trigger states via action. You can render any element you like here.

Hello world

Appearance

default: primary

There are 2 possible appearances a BrandedHeading can have. Secondary is in most cases used on dark backgrounds.

Primary

Secondary

As

default: h1

Render the component with a different HTML element to make sure it's semantically correct.

H1

H2

H3

Size

default: large

Each size can be used in it's own context.

Default large

Large

Small

© Copyright 2020 Mediahuis NV. All rights Reserved