Skip to content

Implement a Vertical Margin easily between React Components

Notifications You must be signed in to change notification settings

KodeyThomas/VerticalMargin

Repository files navigation

vertical-margin

Add a Vertical Margin for use between components

NPM JavaScript Style Guide

Install

npm install --save vertical-margin

Usage

import React from 'react'

import { Header, Footer } from '../otherComponent'

import { VerticalMargin } from 'vertical-margin'

class Example extends Component {
  render() {
    return (
	<Header />
	<VerticalMargin margin={5} />
	<Footer />
    )
  }
}

License

MIT © KodeyThomas

About

Implement a Vertical Margin easily between React Components

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published