Components

BurgerIcon

<BurgerIcon active onClick className />

Constructor

# <BurgerIcon active onClick className />

Burger Icon for use as a button for a mobile menu.

Example

const [active, setActive] = React.useState(false)
return (
    <BurgerIcon active={active} onClick={() => setActive(!active))} />
)
PropTypes:
Name Type Required Description Default
active bool No Show burger when false, show cross when true false
onClick func No Callback when the user clicked on the icon () => {}
className string No Additional class applied to the outermost box.

View Source components/burgerIcon.js, line 52