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

@talixo/accordion

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@talixo/accordion

UI component which represents Accordion

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

Talixo Accordion

UI component which represents Accordion

How to install

Package is available as @talixo/accordion in NPM registry, so you can use it in your project using npm install @talixo/accordion --save or yarn add @talixo/accordion.

Requirements

Your package should additionally have some extra dependencies:

  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.0
  • @talixo/shared: ^0.1.0
  • @talixo/collapse: ^0.1.0

These packages are required by @talixo/accordion, but you have to install them manually, to avoid having different versions of these in your application.

Supported props

Property nameTypeDefaultDescription
classNamestringn/aadditional class name passed to wrapper
smoothbooln/ashould elements be collapsed and opened smoothly?
animationTimenumbern/atime of smooth animation (in ms)
optionsOption[]n/aoptions to show in Accordion
valueanyn/aID of currently opened option
onChangefunctionn/aHandler fired on possible change of opened container
renderOpenIconfunctionn/aRender "open" icon for closed option
renderCloseIconfunctionn/aRender "close" icon for opened option
buildIdfunction(x, index) => indexFunction to build unique ID for option

Types

Option

Option which should be shown in Accordion has few required properties:

Property nameTypeDefaultDescription
labelnoden/aLabel to show in button
contentnodesn/aContent to put inside collapsible element

Changelog

  • 0.1.0 - initial version

FAQs

Package last updated on 02 May 2018

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