Skip to content

Commit

Permalink
docs(ClipboardButton): more stories
Browse files Browse the repository at this point in the history
  • Loading branch information
itwillwork committed May 30, 2024
1 parent feca727 commit 7880ac2
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ type Story = StoryObj<typeof ClipboardButton>;
export const Default: Story = {
args: {
onCopy: action('onCopy'),
onMouseEnter: action('onMouseEnter'),
onMouseLeave: action('onMouseLeave'),
onFocus: action('onFocus'),
onBlur: action('onBlur'),
},
};

Expand All @@ -30,6 +34,13 @@ export const CustomTooltipText: Story = {
name: 'Custom tooltip text',
};

export const CustomTimeout: Story = {
args: {
timeout: 5000,
},
name: 'Custom timeout',
};

const viewCases: Array<ClipboardButtonProps['view']> = [
'normal',
'action',
Expand Down

0 comments on commit 7880ac2

Please sign in to comment.