1.1.2 • Published 3 years ago
react-og-buttons v1.1.2
react-og-buttons
Buttons make by OG Developer
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