@axa-ch/text

The text component for the AXA Pattern Library

Usage no npm install needed!

<script type="module">
  import axaChText from 'https://cdn.skypack.dev/@axa-ch/text';
</script>

README

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.

Properties

Variant

Attribute Details
variant="size-2" Bigger Text Size
variant="size-3" Large Text Size
variant="size-4" Small Text Size
variant="bold" Bold Text
variant="semibold" Semi-Bold Text