From 58005ad6ca761309eb8a92d2489030a7b1bad523 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Fri, 1 Apr 2022 11:39:37 +0200
Subject: chore: add a Hamburger icon component

---
 src/components/atoms/icons/hamburger.stories.tsx | 25 ++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 src/components/atoms/icons/hamburger.stories.tsx

(limited to 'src/components/atoms/icons/hamburger.stories.tsx')

diff --git a/src/components/atoms/icons/hamburger.stories.tsx b/src/components/atoms/icons/hamburger.stories.tsx
new file mode 100644
index 0000000..c145daf
--- /dev/null
+++ b/src/components/atoms/icons/hamburger.stories.tsx
@@ -0,0 +1,25 @@
+import { ComponentMeta, ComponentStory } from '@storybook/react';
+import HamburgerIcon from './hamburger';
+
+export default {
+  title: 'Atoms/Icons',
+  component: HamburgerIcon,
+  argTypes: {
+    isActive: {
+      control: {
+        type: 'boolean',
+      },
+      description: 'Transform hamburger into a cross when state is active.',
+      type: {
+        name: 'boolean',
+        required: true,
+      },
+    },
+  },
+} as ComponentMeta<typeof HamburgerIcon>;
+
+const Template: ComponentStory<typeof HamburgerIcon> = (args) => (
+  <HamburgerIcon {...args} />
+);
+
+export const Hamburger = Template.bind({});
-- 
cgit v1.2.3

