Socket
Book a DemoInstallSign in
Socket

@ecl/checkbox

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecl/checkbox

ECL Checkbox

5.0.0-alpha.15
latest
Source
npmnpm
Version published
Weekly downloads
478
-1.85%
Maintainers
6
Weekly downloads
 
Created
Source

ECL Checkbox component

npm package: @ecl/checkbox

npm install --save @ecl/checkbox

Parameters:

  • "items" (array) (default: [])
    • "id" (string) (default: random): id of the checkbox
    • "value" (string) (default: '')
    • "invalid" (boolean) (default: false)
    • "disabled" (boolean) (default: false)
    • "checked" (boolean) (default: false)
    • "helper_text" (block) (default: '')
    • "label" (block) (default: '')
    • "item_required_text" (string) (default: '')
  • "name" (string) (default: '')
  • "invalid" (boolean) (default: false)
  • "invalid_icon" (object of type "icon") (default: {})
  • "sr_invalid_icon" (string) (default: ''): additional label for the invalid icon; for screen readers
  • "required" (boolean) (default: false)
  • "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:

  • "invalid_text"

Example:

{% include '@ecl/checkbox/checkbox-group.html.twig' with { 
  id: 'checkbox-default',
  name: 'checkbox-default', 
  invalid: false, 
  required: true, 
  items: [ 
    { 
      id: 'checkbox-default-1', 
      value: 'lu', 
      label: 'Luxembourg', 
      helper_text: 'Help text for option 1', 
      checked: true, 
    }, 
    { 
      id: 'checkbox-default-2', 
      value: 'be', 
      label: 'Belgium', 
      helper_text: 'Help text for option 2', 
    }, 
    { 
      id: 'checkbox-default-3', 
      value: 'fr', 
      label: 'France (disabled)', 
      helper_text: 'Help text for option 3', 
      disabled: true, 
    }, 
  ], 
} %}

Keywords

ecl

FAQs

Package last updated on 15 Jul 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.