0.1.4 • Published 6 years ago

react-snippet-component v0.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Welcome to React Snippet Component :)

Build Status

See in Action

Component Gif

Installation

React Snippet Component is available as an NPM Package

using npm

npm i react-snippet-component

Usage

import React from 'react'
import SnippetComponent from 'react-snippet-component'
import NyanCat from '../images/nyan-cat.jpg'

const Snippet = () => (
  <div>
    <div>
      <h1>Hello!</h1>
      <p>Welcome to my snippet</p>
    </div>
    <SnippetComponent
      image={NyanCat}
      alt="NyanCat"
      title="Title"
      span="Span"
      href="https://rebyoliveira.github.io/projects/"
    />
  </div>
)

export default Snippet

Dependencies

SnippetComponent.propTypes = {
  image: PropTypes.string,
  alt: PropTypes.string,
  title: PropTypes.string,
  span: PropTypes.string,
  href: PropTypes.string
}

License

This project is licensed under the terms of the MIT license.