@hixme-ui/card-drawer

2.1.0 • Public • Published

Card Drawer

npm i --save @hixme-ui/card-drawer

View it live

CardDrawer is an accordion component implemented with Card and react-collapsible.

Usage

import CardDrawer from '@hixme-ui/card-drawer'

// Using react-collapsible
<CardDrawer collapsible cardHeader='Drawer title'>
  <p>Drawer content</p>
</CardDrawer>

// Always open, static CardDrawer
<CardDrawer open cardHeader='Drawer title'>
  <p>Drawer content</p>
</CardDrawer>

// You can also supply the content to the cardContent prop
<CardDrawer
  collapsible
  cardHeader='Drawer title'
  cardContent={
    <p>Drawer content</p>
  }
/>

Props

Name Type Default
cardContent node null
cardHeader string null
children node N/A
collapsible boolean false
disabled boolean false
hideArrow boolean false

Package Sidebar

Install

npm i @hixme-ui/card-drawer

Weekly Downloads

68

Version

2.1.0

License

MIT

Unpacked Size

31.5 kB

Total Files

24

Last publish

Collaborators

  • sureco-devops
  • sureco-engineering
  • dreamingbinary
  • billyxs