@anouar99pac/component-text

This component is used to display text

Usage no npm install needed!

<script type="module">
  import anouar99pacComponentText from 'https://cdn.skypack.dev/@anouar99pac/component-text';
</script>

README

@ecw-title

This component is used to display text

Installation

npm install @emobg/component-text

Basic usage

HTML Structure

<EcwText></EcwText>

Inputs

Name Required Description Values (default in bold)
color no the color of the text disabled, standard-1, standard-2, standard-3, standard-4, highlight-1, highlight-2, highlight-3, promotional-1, warning-1, warning-2
textCase no the text case uppercase, lowercase, capitalize, null
tag no the html tag h1, h2, h3, h4, h5, h6
size no the text size xxs , xs, s, m, l, inherit
weight no the text weight regular, bold
lineHeight no the text line height s, m, l, null

Style customization

CSS class Description
ecw-text the main container
Each input value is a modifier following EBM style
Eg. ecw-text--color-standard-2