7.0.3 • Published 1 year ago

@axa-ch/text v7.0.3

Weekly downloads
350
License
Copyright 2019 AX...
Repository
github
Last release
1 year ago

Text

A convenience component to apply possible AXA text styles to a piece of text.

It accepts simple text strings as children or top-level HTML tags like <p> or <span>. Nested HTML tags are not supported. The default behaviour of wrapping simple text in a p(aragraph) text can be suppressed via the Boolean attribute nowrap.

Properties

size

AttributeDetails
size="1"Extra Large Text Size
size="2"Large Text Size
size="3"Medium Text Size
size="4"Small Text Size

nowrap

This Boolean attribute nowrap will lead to not render the wrapping p(aragraph) tag

bold

This Boolean attribute adds the font-weight bold

italic

This Boolean attribute adds the font-style italic

Custom Margins

You can overwrite the predefined margins on the custom element tag or use custom css property --text-margin, see the example. Please only do this if this is abolutely necessary, since the default margins are aligned with the styleguide.

Example:

<axa-text size="1">I'm a paragraph</axa-text>

<style>
  axa-text {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
  }

  axa-text {
    --text-margin: 0;
  }
</style>
7.0.3

1 year ago

7.0.2

1 year ago

7.0.0

2 years ago

7.0.1

1 year ago

6.0.8

2 years ago

6.0.7

2 years ago

6.0.6

2 years ago

6.0.5

2 years ago

6.0.4

2 years ago

5.0.2

2 years ago

5.0.1

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

5.0.0

2 years ago

4.4.2

3 years ago

4.4.1

3 years ago

4.4.0

3 years ago

4.3.10

3 years ago

4.3.9

3 years ago

4.3.8

3 years ago

4.3.7

3 years ago

4.3.6

4 years ago

4.3.5

4 years ago

4.3.4

4 years ago

4.3.3

4 years ago

4.3.1

4 years ago

4.3.0

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.1.0

4 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.7

4 years ago

3.0.6

4 years ago

3.0.5

4 years ago

3.0.4

4 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.14

4 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago