@ecl-twig/ec-component-label

2.39.0 • Public • Published

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' } 
  ] 
} %} 

Package Sidebar

Install

npm i @ecl-twig/ec-component-label

Weekly Downloads

20

Version

2.39.0

License

EUPL-1.1

Unpacked Size

16.6 kB

Total Files

4

Last publish

Collaborators

  • yhuard
  • planctus
  • kalin.chernev