blob: 7e7c2c90d01af3bad1238b795f2ec8513b8f294a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
import { FC } from 'react';
import styles from './hamburger.module.scss';
type HamburgerProps = {
/**
* Set additional classnames to the icon wrapper.
*/
className?: string;
/**
* Set additional classnames to the icon.
*/
iconClassName?: string;
};
/**
* Hamburger component
*
* Render a Hamburger icon.
*/
const Hamburger: FC<HamburgerProps> = ({
className = '',
iconClassName = '',
}) => {
return (
<span className={`${styles.wrapper} ${className}`}>
<span className={`${styles.icon} ${iconClassName}`}></span>
</span>
);
};
export default Hamburger;
|