diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-12 15:48:47 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-12 15:48:47 +0200 |
| commit | ff3a251e75fafce7d95177010401483127973313 (patch) | |
| tree | 9a0c9e0ff3f8525bf138287b41ac0527551389fd /src/components/atoms/icons/hamburger.stories.tsx | |
| parent | 714273556f5278746a4022d0e87153ff431a61cf (diff) | |
chore: add a MainNavButton component
I also move the active state from the hamburger to this pseudo-button.
It makes more sense that the button handles the icon shape.
Diffstat (limited to 'src/components/atoms/icons/hamburger.stories.tsx')
| -rw-r--r-- | src/components/atoms/icons/hamburger.stories.tsx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/components/atoms/icons/hamburger.stories.tsx b/src/components/atoms/icons/hamburger.stories.tsx index 062d3ee..c753e69 100644 --- a/src/components/atoms/icons/hamburger.stories.tsx +++ b/src/components/atoms/icons/hamburger.stories.tsx @@ -9,7 +9,7 @@ export default { control: { type: 'text', }, - description: 'Set additional classnames.', + description: 'Set additional classnames to the icon wrapper.', table: { category: 'Styles', }, @@ -18,14 +18,17 @@ export default { required: false, }, }, - isActive: { + iconClassName: { control: { - type: 'boolean', + type: 'text', + }, + description: 'Set additional classnames to the icon.', + table: { + category: 'Styles', }, - description: 'Transform hamburger into a cross when state is active.', type: { - name: 'boolean', - required: true, + name: 'string', + required: false, }, }, }, |
