This package has been deprecated

Author message:

Package deprecated

@hnordt/reax-panel

1.1.2 • Public • Published

Reax Panel

Bootstrap Panel component for React

npm version

PropTypes

{
  type: PropTypes.oneOf([
    'default',
    'success',
    'info',
    'warning',
    'danger'
  ]),
  title: PropTypes.node,
  collapsed: PropTypes.bool,
  onClose: PropTypes.func,
  children: PropTypes.node.isRequired
}

Important:

  1. To make Panel collapsible pass a boolean to collapsed (either true or false)
  2. collapsed don't work with onClose, choose one of them
  3. Both collapsed and onClose aren't shown if you don't pass a title

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;

Readme

Keywords

none

Package Sidebar

Install

npm i @hnordt/reax-panel

Weekly Downloads

2

Version

1.1.2

License

MIT

Last publish

Collaborators

  • hnordt