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. |