This package has been deprecated

Author message:

Please use the new scope @axa-ch-webhub-cloud

@axa-ch/heading

7.0.3 • Public • Published

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 h1 element.
size="2" will lead to a h2 element.
size="3" will lead to a h3 element.
size="4" will lead to a h4 element.
size="5" will lead to a h5 element.
size="6" will lead to a h6 element.

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @axa-ch/heading

Weekly Downloads

176

Version

7.0.3

License

Copyright 2019 AXA Versicherungen AG

Unpacked Size

36 kB

Total Files

7

Last publish

Collaborators

  • gianlucaguarini
  • valentin-hasler
  • marek.laco
  • domirs
  • axa-ch-user
  • matthias.zuercher
  • selinagahlinger