Skip to content

Commit

Permalink
default 링크 타입 스토리북 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dongoc committed Jan 2, 2025
1 parent 31eec6f commit 7f96b1b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/triple-email-document/src/links.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export default {
},
} as Meta

export const StyledDefaultLinkElement: StoryObj = {
name: '디폴트',
args: generateSampleData('default'),
}

export const StyledButtonLinkElement: StoryObj = {
name: '버튼',
args: generateSampleData('button'),
Expand All @@ -50,7 +55,12 @@ export const StyledCompactLargeButtonLinkElement: StoryObj = {
args: generateSampleData('largeCompactButton'),
}

type LinkDisplay = 'button' | 'block' | 'largeButton' | 'largeCompactButton'
type LinkDisplay =
| 'default'
| 'button'
| 'block'
| 'largeButton'
| 'largeCompactButton'

function generateSampleData(type: LinkDisplay) {
return {
Expand Down

0 comments on commit 7f96b1b

Please sign in to comment.