1.13.0 • Published 4 years ago

@schibstedspain/sui-card-collapsible v1.13.0

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

CardCollapsible

Description

npm.io

Displays an expandable/collapsible card, hiding it's content that must be passed to the card's component as its children node until the "expand" action is triggered clicking the corresponding button.

  • When the card is collapsed, it displays a header image and a list of additional text info below it, which can be configured through the property info.displayWhenCollapsed. It also displays a button that is configured to trigger the "expand" action.

  • When the card is expanded, the content will be displayed below, and the card's header will be modified to show the image in the left side, and other additional info will be displayed in the right side of the header, configurable in the property info.displayWhenExpanded.

Installation

$ npm install @schibstedspain/sui-card-collapsible --save

Usage

Basic usage

import CardCollapsible from '@schibstedspain/sui-card-collapsible'

return (<CardCollapsible />)

Find full description and more examples in the demo page.

1.13.0

4 years ago

1.12.0

4 years ago

1.11.0

5 years ago

1.10.0

6 years ago

1.9.0

6 years ago

1.8.0

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago