Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ecl/twig-component-text-input

Package Overview
Dependencies
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecl/twig-component-text-input

ECL Text Input

  • 3.13.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
208
increased by13.04%
Maintainers
6
Weekly downloads
 
Created
Source

ECL Text Field component

npm package: @ecl/twig-component-text-input

npm install --save @ecl/twig-component-text-input

Parameters:

  • "id" (string) (default: '')
  • "disabled" (boolean) (default: false)
  • "invalid" (boolean) (default: false)
  • "invalid_icon" (object of type "icon") (default: {})
  • "required" (boolean) (default: false)
  • "name" (string) (default: '')
  • "type" (string) (default: '')
  • "placeholder" (string) (default: '')
  • "width" (string) (default: 'm') Input width size (s, m or l)
  • "extra_label_classes" (string) (default: '') Extra classes for the label (space separated)
  • "extra_group_classes" (optional) (string) (default: '') Extra classes (space separated) for the text-input group
  • "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'

Blocks:

  • "helper_text"
  • "invalid_text"
  • "required_text"
  • "optional_text"
  • "label"

Example:

{% include '@ecl/text-input/text-input.html.twig' with { 
  label: 'Email address', 
  invalid_text: "Invalid email address. Valid e-mail can contain only latin letters, numbers, '@' and '.'", 
  helper_text: 'This address will be used for contact purpose', 
  id: 'input-email', 
  name: 'email', 
  width: 'm', 
  extra_group_classes: 'my-extra-group-class-1 my-extra-group-class-2', 
  extra_classes: 'my-extra-class-1 my-extra-class-2', 
  extra_attributes: [ 
    { name: 'data-test-1', value: 'data-test-value-1' }, 
    { name: 'data-test-2', value: 'data-test-value-2' } 
  ] 
} %}

Keywords

FAQs

Package last updated on 10 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc