A header element which can be displayed with an icon and count number.
import { faBug } from '@fortawesome/free-solid-svg-icons';
<div>
<Heading size={1} icon={faBug} controls={[<Icon name="gear" />, <Icon name="refresh" />]}>
Heading
</Heading>
<Heading size={2} icon={faBug} controls={[<Icon name="gear" />, <Icon name="refresh" />]}>
Heading
</Heading>
<Heading size={3} icon={faBug} controls={[<Icon name="gear" />, <Icon name="refresh" />]}>
Heading
</Heading>
<Heading size={4} icon={faBug} controls={[<Icon name="gear" />, <Icon name="refresh" />]}>
Heading
</Heading>
<Heading size={5} icon={faBug} controls={[<Icon name="gear" />, <Icon name="refresh" />]}>
Heading
</Heading>
<Heading size={6} icon={faBug} controls={[<Icon name="gear" />, <Icon name="refresh" />]}>
Heading
</Heading>
</div>
size={number}
A value from 1 to 6 indicating the type of header to use, e.g. h1, h2, h3, etc.
icon={string|element}
Icon to display to the left of the text. Either the name of an icon, or an Icon
component.
controls={array}
Elements added to the right of the text.
count={number}
Number value to display to the right of the text.
Adds the dp-heading
class to the created element.
Wraps the controls in the dp-heading__controls
class.
Wraps the count value in the dp-heading__count
class.