Skip to content

afeiship/react-layout-vertical

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-layout-vertical

React component for layout[top/middle/bottom] vertical.

properties:

  static propTypes = {
    className:PropTypes.string,
    justify:PropTypes.string
  };

usage:

import {
  ReactLayoutItem,
  ReactLayoutVertical,
} from './main';

class App extends React.Component{
  render(){
    return (
      <div className="hello-react-layout-tmb">
        <h1>justify-start</h1>
        <ReactLayoutVertical className="test-tmb"justify='start'>
          <ReactLayoutItem style={{height:'50px'}}>top</ReactLayoutItem>
          <ReactLayoutItem style={{border:'1px solid #f00'}}>top</ReactLayoutItem>
          <ReactLayoutItem style={{height:'30px'}}>bottom</ReactLayoutItem>
        </ReactLayoutVertical>


        <h1>justify-end</h1>
        <ReactLayoutVertical className="test-tmb" justify='end'>
          <ReactLayoutItem className="top" style={{height:'50px'}}>top</ReactLayoutItem>
          <ReactLayoutItem className="bottom"  style={{height:'20px'}}>bottom</ReactLayoutItem>
        </ReactLayoutVertical>


        <h1>justify-space-between</h1>
        <ReactLayoutVertical className="test-tmb" justify='between'>
          <ReactLayoutItem className="top">top</ReactLayoutItem>
          <ReactLayoutItem className="bottom" >bottom</ReactLayoutItem>
        </ReactLayoutVertical>
    </div>
    );
  }
}

resource:

About

React component for layout[top/middle/bottom] vertical.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published