Reax Panel
Bootstrap Panel component for React
PropTypes
{
type: PropTypes.oneOf([
'default',
'success',
'info',
'warning',
'danger'
]),
title: PropTypes.node,
collapsed: PropTypes.bool,
onClose: PropTypes.func,
children: PropTypes.node.isRequired
}
Important:
- To make
Panel
collapsible pass a boolean tocollapsed
(eithertrue
orfalse
) -
collapsed
don't work withonClose
, choose one of them - Both
collapsed
andonClose
aren't shown if you don't pass atitle
Usage
npm install --save @hnordt/reax-panel
import React from 'react';
import Panel from '@hnordt/reax-panel';
const Foo = () => (
<Panel title="Foo" collapsed={true}>
Bar
</Panel>
);
export default Foo;