@axa-ch/heading v7.0.3
Heading
The title component provides a way to conveniently use headings and titles, that are in line with the style guide. Keep in mind that you need to import the fonts separately.
Properties
size
Size holds a number from one to six, which represents the underlying html heading tag.
| Attribute | Details | 
|---|---|
| size="1" | will lead to a h1element. | 
| size="2" | will lead to a h2element. | 
| size="3" | will lead to a h3element. | 
| size="4" | will lead to a h4element. | 
| size="5" | will lead to a h5element. | 
| size="6" | will lead to a h6element. | 
secondary
The Boolean attribute secondary when present, will cause the font Publico Headline to be used (default font: Source Sans Pro).
Custom Margins
You can overwrite the predefined margins on the custom element tag or use the Custom CSS Property --heading-margin, see the examples.
Example:
<axa-heading size="1">I'm a h1 title</axa-heading>
<style>
  axa-heading {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
  }
  axa-heading {
    --heading-margin: 0;
  }
</style>3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago