Heading

Shows the content hierarchy and improves the reading experience.

To implement Heading component into your project you’ll need to add the import:

import Heading from "@kiwicom/orbit-components/lib/Heading";

After adding import into your project you can use it simply like:

<Heading>Hello World!</Heading>

Table below contains all types of the props available in Heading component.

NameTypeDefaultDescription
asenum"div"The element used for the root node.
childrenReact.NodeThe content of the Heading.
dataTeststringOptional prop for testing purposes.
dataA11ySectionstringID for a <SkipNavigation> component.
idstringAdds id HTML attribute to an element. Expects a unique ID.
invertedbooleanThe true, the Heading color will be white.
spaceAfterenumAdditional margin-bottom after component. See this docs
typeenum"title1"The size type of Heading.
astype
"h1""display"
"h2""displaySubtitle"
"h3""title1"
"h4""title2"
"h5""title3"
"h6""title4"
"div""title5"