1.1.2 • Published 10 years ago
@hnordt/reax-panel v1.1.2
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
Panelcollapsible pass a boolean tocollapsed(eithertrueorfalse) collapseddon't work withonClose, choose one of them- Both
collapsedandonClosearen't shown if you don't pass atitle
Usage
npm install --save @hnordt/reax-panelimport React from 'react';
import Panel from '@hnordt/reax-panel';
const Foo = () => (
<Panel title="Foo" collapsed={true}>
Bar
</Panel>
);
export default Foo;