🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

react-component-panel

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-component-panel

<!-- badge --> [![npm version](https://img.shields.io/npm/v/react-component-panel.svg)](https://www.npmjs.com/package/react-component-panel) [![npm license](https://img.shields.io/npm/l/react-component-panel.svg)](https://www.npmjs.com/package/react-compo

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
11
266.67%
Maintainers
1
Weekly downloads
 
Created
Source

react-component-panel

npm version npm license npm download npm download

Screen Shot

Install

$ npm i react-component-panel --save

Import

import {Panel} from 'react-component-panel'

TODO

  • Panel
  • CollapsiblePanel

API

Panel

Extends PureComponent

Panel

Examples

Simple Panel Demo

class PanelDemo extends Component{
render(){
	return (
		<Panel title="Panel Title" renderRight={()=>{
			return (
				<button type="button" onClick={()=>{
					alert('pressed');
				}}>press me</button>
			);
		}}>
			<p>panel content</p>
		</Panel>
	);
}
}

propTypes

Properties

  • title (String | ReactNode | HtmlElement) 标题
  • renderRight Function? [ ()=>null ] - 右侧按钮
  • style Object? 样式
  • className String? class style

FAQs

Package last updated on 11 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts