Skip to content

Commit

Permalink
feat: 스토리 설명 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dmswl98 committed Jan 8, 2024
1 parent 5056bd8 commit f461216
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions src/components/Tooltip/Tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ const meta: Meta<typeof Tooltip> = {
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
gap: '200px',
padding: '60px 0',
height: '550px',
}}
>
<Story />
Expand Down Expand Up @@ -60,12 +61,22 @@ export const Basic: Story = {
};

export const Minimal: Story = {
parameters: {
docs: {
description: {
story: 'Hover시 Trigger 요소의 상위와 하위에 노출됩니다.',
},
},
},
args: {
children: 'Minimal',
hasArrow: false,
placement: 'bottom',
},
argTypes: {
hasArrow: { control: false },
},
render: (args) => (
<Tooltip hasArrow={args.hasArrow}>
<Tooltip hasArrow={false} placement={args.placement}>
<Tooltip.Trigger>
<div>{args.children}</div>
</Tooltip.Trigger>
Expand All @@ -75,12 +86,22 @@ export const Minimal: Story = {
};

export const Highlight: Story = {
parameters: {
docs: {
description: {
story: 'Hover시 Trigger 요소의 하위에 노출됩니다.',
},
},
},
args: {
children: 'Highlight',
hasArrow: true,
},
argTypes: {
placement: { control: false },
},
render: (args) => (
<Tooltip hasArrow={args.hasArrow}>
<Tooltip hasArrow={args.hasArrow} placement="bottom">
<Tooltip.Trigger>
<div>{args.children}</div>
</Tooltip.Trigger>
Expand Down

0 comments on commit f461216

Please sign in to comment.