Skip to content

Commit dffdef4

Browse files
committed
An explicit story to help with docs to show how to use a different icon
1 parent c371aa8 commit dffdef4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

packages/uui-copy/lib/uui-copy.story.ts

+22
Original file line numberDiff line numberDiff line change
@@ -219,3 +219,25 @@ export const AnimationDelay: Story = {
219219
},
220220
},
221221
};
222+
223+
export const WithDifferentIcon: Story = {
224+
name: 'Different Icon',
225+
args: {
226+
value: 'I have used a different icon',
227+
},
228+
render: args => html`
229+
<uui-copy .value=${args.value}>
230+
<uui-icon name="clipboard"></uui-icon> Copy to Clipboard
231+
</uui-copy>
232+
`,
233+
parameters: {
234+
docs: {
235+
source: {
236+
code: `
237+
<uui-copy value="I have used a different icon">
238+
<uui-icon name="clipboard"></uui-icon> Copy to Clipboard
239+
</uui-copy>`,
240+
},
241+
},
242+
},
243+
};

0 commit comments

Comments
 (0)