Headings can be aligned via the align prop. If you need alignment to differ across various screen sizes, you can provide responsive values describing the alignment of each breakpoint, e.g. align={{ mobile: 'center', tablet: 'left' }}
For decoration or help distinguishing between headings, an icon can be provided. This will be placed to the left of the text.In the case of wrapping text, the icon will remain on the left — with the text not wrapping beneath it. If this is not desired, place the icon inside the Heading component, instead of providing it to the icon prop.
To ensure headings have sufficient contrast, when on a dark background the foreground colour is inverted.When using custom backgrounds or images on a Box component, this behaviour can be applied by setting the background to either customLight or customDark.