🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

@fenderdigital/react-accordion

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fenderdigital/react-accordion

Fender React UI Kit Accordion Component

latest
npmnpm
Version
1.6.0
Version published
Maintainers
6
Created
Source

Accordion for Fender React UI Kit

Description

The Accordion component is used to expand and collapse content.

Installation and Usage

yarn add @fenderdigital/react-accordion --save
import Accordion from '@fenderdigital/react-accordion';

Props

  • children - renders any child elements
  • disableTriangle - hides the up/down triangle arrow
  • hasAnimation - enables animations for the expanded / collapsed states
  • icon - accepts an icon element that renders to the left of the label
  • isVisible - the current collapsed / expanded state
  • label - the button label
  • onCallback - callback after the visibility state is set
  • styles - tachyon classes for the button
  • transition - accepts a prop for transtion effects
propNamepropTypedefaultValueisRequired
childrennodenull-
disableTrianglenodenull-
hasAnimationbooleantrue-
iconnodenull-
isVisiblebooleanfalse-
labelstringnull-
onCallbackfunc() => {}-
stylesfuncflex-
transitionstringnull-

Development

Check the Monorepo README for development documentation.

Keywords

react

FAQs

Package last updated on 14 Oct 2019

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