4.1.6 • Published 4 years ago

@lendi-ui/collapse v4.1.6

Weekly downloads
185
License
ISC
Repository
-
Last release
4 years ago

@lendi-ui/collapse

A Collapse component.

Installation

yarn add @lendi-ui/collapse

Usage

import Collapse from '@lendi-ui/collapse';
<Collapse title="Collapse Title" />;

Properties

<PropTable>
  <PropTable.Entry name="title" required type="string" description="Title of collapse"/>
  <PropTable.Entry name="subTitle" type="string" description="SubTitle of collapse"/>
  <PropTable.Entry name="isExpanded" type="boolean" defaultValue=false description="expanded/collapsed"/>
  <PropTable.Entry name="footer" type="React.ReactElement" description="Footer of the collapse"/>
  <PropTable.Entry name="onClick" type="(isExpanded) => void" description="Handle the click event. Consumer can get the current state of collapse - expanded/collapsed"/>
  <PropTable.Entry name="children" type="React.ReactNode" description="Content of the collapse"/>
  <PropTable.Entry name="headerSize" type={`"xs" | "sm" | "md"`} defaultValue='sm' description="header size to collapse header"/>
  <PropTable.Entry name="className" defaultValue=""type="string" description="external classname to override style of the component"/>
</PropTable>
4.1.6

4 years ago

4.1.5

4 years ago

4.1.4

4 years ago

4.1.3

4 years ago

4.1.2

4 years ago

4.1.1

4 years ago

4.1.0

4 years ago

5.0.0-beta.0

4 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.0-alpha

5 years ago

3.0.0

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago