Skip to content

Commit 1012d96

Browse files
committed
[Button] Add example of passing class to icon
1 parent b2324a1 commit 1012d96

File tree

1 file changed

+8
-0
lines changed
  • packages/svelte-ux/src/routes/docs/components/Button

1 file changed

+8
-0
lines changed

packages/svelte-ux/src/routes/docs/components/Button/+page.svelte

+8
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,14 @@
236236
</Button>
237237
</Preview>
238238

239+
<h2>Pass class to Icon</h2>
240+
241+
<Preview>
242+
<Button icon={mdiTrashCan} classes={{ icon: 'text-danger-300 text-lg' }} color="danger">
243+
Delete
244+
</Button>
245+
</Preview>
246+
239247
<SectionDivider class="mt-12">Icon only</SectionDivider>
240248

241249
<h2>Icon-only button</h2>

0 commit comments

Comments
 (0)