/react-resizable-container

A react resizable contianer component

Primary LanguageTypeScript

react-resizable

Made with create-react-library

NPM JavaScript Style Guide

Install

use npm

npm install --save @jonathanleelx/react-resizable

use yarn

yarn add @jonathanleelx/react-resizable

Usage

import React, { Component } from 'react'
import ResizableContainer from '@jonathanleelx/react-resizable'

import '@jonathanleelx/react-resizable/dist/index.css'

const Flex = () => {
  return <div>flex</div>
}

const Fixed = () => {
  return <div>fixed</div>
}

class App extends Component {
  render() {
    return <ResizableContainer flex={<Flex />} fixed={<Fixed />} />
  }
}

License

MIT © JonathanLee-LX