React Advanced is a library with high-performance, customizable and perfect React components. See the list of available components
- High performance
- No dependencies. Small bundle size
- Semver. No breaking changes on the patch version
- Easy customization
- Zero bugs policy
- Easy start with default behavior
yarn add react-advanced
or
npm install --save react-advanced
import React from 'react';
import { render } from 'react-dom';
import SidebarLayout from 'react-advanced/SidebarLayout';
const Sidebar = (props) => (
<div style={{ width: 300 }}>
<button onClick={() => props.toggle(false)}>Close</button>
Your Sidebar
</div>
);
const App = () => (
<SidebarLayout Leftbar={Sidebar} Rightbar={Sidebar}>
{props => (
<div style={{ textAlign: 'center' }}>
<button style={{ float: 'left' }} onClick={() => props.toggleLeftbar()}>Open left</button>
Your content
<button style={{ float: 'right' }} onClick={() => props.toggleRightbar()}>Open right</button>
</div>
)}
</SidebarLayout>
);
render(<App />, document.getElementById('root'));
- SidebarLayout - A layout component with material sidebars
Write your ideas or feedback about library to the issues. Vote for features in which you are interested. Contribution guide will be added soon.