blob: cc4e7b9e774c09e88e1b3db23e3a7e104e1a7cda (
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
|
import { FC } from 'react';
import styles from './hamburger.module.scss';
export 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.
*/
export const Hamburger: FC<HamburgerProps> = ({
className = '',
iconClassName = '',
}) => {
return (
<span className={`${styles.wrapper} ${className}`}>
<span className={`${styles.icon} ${iconClassName}`}></span>
</span>
);
};
|