Skip to content

Commit 43f2af7

Browse files
authored
Merge pull request layer5io#750 from layer5io/hamburger-menu
chore: Add hamburger icon
2 parents b0fa866 + 67b8616 commit 43f2af7

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

src/icons/Menu/MenuIcon.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
2+
import { IconProps } from '../types';
3+
4+
export const AddIcon = ({
5+
width = DEFAULT_WIDTH,
6+
height = DEFAULT_HEIGHT,
7+
fill = DEFAULT_FILL_NONE,
8+
...props
9+
}: IconProps): JSX.Element => {
10+
return (
11+
<svg
12+
width={width}
13+
height={height}
14+
xmlns="http://www.w3.org/2000/svg"
15+
viewBox="0 0 24 24"
16+
data-testid="add-icon-svg"
17+
{...props}
18+
>
19+
<path fill={fill} d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"></path>
20+
</svg>
21+
);
22+
};
23+
24+
export default AddIcon;

src/icons/Menu/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as MenuIcon } from './MenuIcon';

src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export * from './InfoOutlined';
5454
export * from './Kubernetes';
5555
export * from './LeftAngledArrow';
5656
export * from './LeftArrow';
57+
export * from './Menu';
5758
export * from './MesheryOperator';
5859
export * from './Open';
5960
export * from './PanTool';

0 commit comments

Comments
 (0)