🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@dreamworld/dw-accordion

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/dw-accordion

A light weight accordion web component.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
4
Created
Source

dw-accordion

Introduction

  • It's accordion web component.

Installation Steps

  • yarn add @dreamworld/dw-accordion

Usage

  • This can be used by extention only.

Import

  • import '@dreamworld/dw-accordion'

Use

  • <dw-accordion 
      items=${[{}, {}]}>
    </dw-accordion>
    

Properties

  • items: List of items to be shown.

Templates (These both are mandatory templates)

  • headerTemplate(item)
  • contentTemplate(item)

CSS properties

  • --dw-accordion-border-color: Border color of whole accordion. Default is rgba(0, 0, 0, 0.10).
  • --dw-accordion-item-divider-color: Divider color of each item. Default is rgba(0, 0, 0, 0.10).
  • --dw-accordion-header-padding: Padding of header of each item. Default is 8px 16px.
  • --dw-accordion-content-padding: Padding of content of each item. Default is 8px 16px.

Methods

  • collapseAll: Collapses all the expanded items.

FAQs

Package last updated on 13 Oct 2022

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