2.39.0 • Published 4 years ago

@ecl-twig/ec-component-label v2.39.0

Weekly downloads
196
License
EUPL-1.1
Repository
github
Last release
4 years ago

ECL-Twig Label component

npm package: @ecl-twig/ec-component-label

npm install --save @ecl-twig/ec-component-label

Parameters

  • "variant" (string) (default: low) (Allowed values: low, medium, high, highlight) - Variant name
  • "label" (string) (default: '') Text of the label
  • "extra_classes" (optional) (string) (default: '') Extra classes (space separated)
  • "extra_attributes" (optional) (array) (default: []) Extra attributes
    • "name" (string) Attribute name, eg. 'data-test'
    • "value" (string) Attribute value, eg: 'data-test-1'
  • "_compliance_" (optional) (boolean) (default: false) Activates debug

Example:

{% include '@ecl-twig/ec-component-icon/ecl-label.html.twig' with { 
 label: 'A label', 
 variant: 'medium', 
  extra_classes: 'my-extra-class-1 my-extra-class-2', 
  extra_attributes: [ 
    { name: 'data-test', value: 'data-test-value' }, 
    { name: 'data-test-1', value: 'data-test-value-1' } 
  ] 
} %} 
2.39.0

4 years ago

2.38.0

4 years ago

2.37.0

4 years ago

2.36.0

4 years ago

2.35.2

4 years ago

2.35.1

5 years ago

2.35.0

5 years ago

2.34.0

5 years ago

2.33.2

5 years ago

2.33.1

5 years ago

2.33.0

5 years ago

2.32.0

5 years ago

2.31.1

5 years ago

2.31.0

5 years ago

2.30.0

5 years ago

2.29.0

5 years ago

2.28.1

5 years ago

2.28.0

5 years ago