Foundation

Main View


Components

Charts

Dialogs

Framer Animations

Forms

Grids

Typography


Tools


UiExpandoCard


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:

Expand peer dependencies

2. Install package:

npm i -S @uireact/expando

  <UiExpandoCard expandLabel="Expand me" collapseLabel="Collapse me">
    <span>This is some content</span>
  </UiExpandoCard>

Expando with custom category and inverse heading coloration

  <UiExpandoCard expandLabel="Expand me" collapseLabel="Collapse me" category="tertiary" headingInverseColoration>
    <span>This is some content</span>
  </UiExpandoCard>

Expando initiated expanded

  <UiExpandoCard expandLabel="Expand me" collapseLabel="Collapse me" expanded>
    <span>This is some content</span>
  </UiExpandoCard>