-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
3,331 additions
and
3,440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
import React from 'react'; | ||
import type {Meta, StoryObj} from '@storybook/react'; | ||
import type {Meta, StoryFn} from '@storybook/react'; | ||
import HamburgerButton from '..'; | ||
|
||
const defaultArgs = { | ||
label: 'Menü anzeigen', | ||
labelActive: 'Menü ausblenden', | ||
position: {blockStart: '20px', inlineStart: '20px'}, | ||
}; | ||
|
||
const meta: Meta = { | ||
title: 'Design System/Components', | ||
component: HamburgerButton, | ||
args: defaultArgs, | ||
args: { | ||
label: 'Menü anzeigen', | ||
labelActive: 'Menü ausblenden', | ||
position: {blockStart: '20px', inlineStart: '20px'}, | ||
}, | ||
}; | ||
|
||
export const HamburgerButtonStory: StoryObj<typeof HamburgerButton> = ( | ||
args: typeof defaultArgs | ||
) => <HamburgerButton {...args} />; | ||
export const HamburgerButtonStory: StoryFn<typeof HamburgerButton> = ( | ||
properties | ||
) => <HamburgerButton {...properties} />; | ||
HamburgerButtonStory.storyName = 'Hamburger button'; | ||
|
||
export default meta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters