0.0.1-b • Published 2 years ago

burger-react v0.0.1-b

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Customizable burger button React component

This component is a port from the project for Vue

Checkout the Demo which contains the visual configurator.

Installation

npm i burger-react

Setup

React

  • Add the following to you component file:
import BurgerButton from 'burger-react'

import the styles

  • css
import 'burger-react/dist/style.css'
  • scss
import 'burger-react/dist/style.scss'

Example

import 'burger-react/dist/style.css'
import BurgerButton from 'burger-react'

function App() {

    return (
        <div className='App'>
            <header className='App-header'>
                <BurgerButton />
            </header>
        </div>
    );
}

export default App;

Props

NameTypeDefault
variantString"cross-right"
thinBooleanfalse
thickBooleanfalse
colorString"#000000"
sizeNumber80
labelString"burger button"
onClickFunction