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

  • 4.0.1
  • 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_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'

Example:

{% include '@ecl/text-input/text-input.html.twig' with { 
  id: 'input-email', 
  name: 'email', 
  width: 'm', 
  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 14 Mar 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