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

@talixo/accordion

Package Overview
Dependencies
Maintainers
3
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

  • 1.0.0-alpha.31
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
3
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:

  • @talixo/collapse: ^1.0.0-alpha.30
  • @talixo/shared: ^1.0.0-alpha.30
  • prop-types: ^15.6.1
  • react: ^16.2.0
  • react-dom: ^16.2.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?
multibooln/ashould allow opening many elements at once?
animationSpeednumber200Animation speed (in px/ms)
optionsOption[]n/aoptions to show in Accordion
valueanyself-controlledID 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
animationSpeednumberaccordion speedAnimation speed (in px/ms)

Changelog

  • 0.1.0 - initial version

FAQs

Package last updated on 19 Oct 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