Foundation
Main View
Components
Charts
Dialogs
Framer Animations
Forms
Grids
Typography
Tools
Package: @uireact/expando
This component renders a card with a heading that allows to show or hide content when clicked.
1. Make sure you install peer dependencies first:
2. Install package:
npm i -S @uireact/expando
<UiExpandoCard expandLabel="Expand me" collapseLabel="Collapse me"> <span>This is some content</span> </UiExpandoCard>
<UiExpandoCard expandLabel="Expand me" collapseLabel="Collapse me" category="tertiary" headingInverseColoration> <span>This is some content</span> </UiExpandoCard>
<UiExpandoCard expandLabel="Expand me" collapseLabel="Collapse me" expanded> <span>This is some content</span> </UiExpandoCard>