New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ecl/accordion

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecl/accordion

ECL Accordion

  • 5.0.0-alpha.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
137
decreased by-49.26%
Maintainers
6
Weekly downloads
 
Created
Source

ECL Accordion component

npm package: @ecl/accordion

npm install --save @ecl/accordion

Parameters

  • "items" (array) (default: []): format:
    • "id" (string) (default: '') Used for binding of togglable elements
    • "level" (string) (default: 3)
    • "toggle" (predefined structure): see Button component
      • "label" (string) (default: '')
    • "content" (string) (default: '')
  • "icon" (array) OR (object) (default: []) Two icons in an array that will be toggled
  • "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/accordion/accordion.html.twig' with { 
  items: [ 
    { 
      id: 'accordion-example', 
      level: 3, 
      toggle: { 
        label: 
          'Delivery of last pending proposals, a common Destiny of unity, the hour of European Democracy', 
      }, 
      content: 
        'The College of Commissioners held today the first weekly meeting of 2019 which was devoted to discussing the challenges of this new year. Commissioners used the opportunity to take stock and discuss the year ahead, including the European elections in May and other important milestones ahead.', 
    }, 
    ... 
  ], 
  icon: [{ 
    path: 'static/icons.svg', 
    name: 'plus', 
  },
  { 
    path: 'static/icons.svg', 
    name: 'minus', 
  }]
} %} 

Keywords

FAQs

Package last updated on 05 Feb 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

  • 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