1.1.2 • Published 3 years ago

react-og-buttons v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

react-og-buttons

Buttons make by OG Developer

NPM JavaScript Style Guide

Install

npm install --save react-og-buttons

or

yarn add react-og-buttons

Setup

:root {
  --primary-color: #191919;
  --secundary-color: #fafafa;
  --title-font: Roboto;
}

Usage

import React, { Component } from 'react'

import Button from 'react-og-buttons'

class Example extends Component {
  render() {
    return (
      <>
        <Button>OG Button</Button>
        <Button backgroundColor='#2196f3' color='#fafafa'>
          Edit Button
        </Button>
        <Button typeStyle='success'>Success Button</Button>
        <Button typeStyle='outline'>Outline Button</Button>
        <Button typeStyle='warning'>Warning Button</Button>
        <Button typeStyle='danger'>Danger Button</Button>
      </>
    )
  }
}

Options

If not pass options, will get setup :root css
typeStyle?: string
color?: string
backgroundColor?: string
fontSize?: string
fontFamily?: string

License

MIT © odenirdev

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago