react-og-buttons
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-og-buttons

Weekly Downloads

5

Version

1.1.2

License

MIT

Unpacked Size

19.9 kB

Total Files

9

Last publish

Collaborators

  • odenirdev