1.6.0 • Published 5 years ago

@fenderdigital/react-accordion v1.6.0

Weekly downloads
1
License
UNLICENSED
Repository
-
Last release
5 years ago

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.

1.6.0

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago