blob: edd25ba8f8e34aee5f7d7ccb37fa66129c207d08 (
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
|
import type { FC, HTMLAttributes } from 'react';
import styles from './hamburger-icon.module.scss';
export type HamburgerIconProps = Omit<
HTMLAttributes<HTMLSpanElement>,
'children'
>;
/**
* HamburgerIcon component
*
* Render a Hamburger icon.
*/
export const HamburgerIcon: FC<HamburgerIconProps> = ({
className = '',
...props
}) => {
const wrapperClass = `${styles.wrapper} ${className}`;
return (
<span {...props} className={wrapperClass}>
<span className={styles.icon} />
</span>
);
};
|