Skip to content

Commit

Permalink
An explicit story to help with docs to show how to use a different icon
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenbuckley committed Jan 7, 2025
1 parent c371aa8 commit dffdef4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/uui-copy/lib/uui-copy.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,25 @@ export const AnimationDelay: Story = {
},
},
};

export const WithDifferentIcon: Story = {
name: 'Different Icon',
args: {
value: 'I have used a different icon',
},
render: args => html`
<uui-copy .value=${args.value}>
<uui-icon name="clipboard"></uui-icon> Copy to Clipboard
</uui-copy>
`,
parameters: {
docs: {
source: {
code: `
<uui-copy value="I have used a different icon">
<uui-icon name="clipboard"></uui-icon> Copy to Clipboard
</uui-copy>`,
},
},
},
};

0 comments on commit dffdef4

Please sign in to comment.