Skip to content

Commit 4ca247d

Browse files
committed
feat(Switch): Add class prop
1 parent af9990a commit 4ca247d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/mdc/Switch/Switch.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function onClick() {
4444
on:click={onClick}
4545
bind:this={element}
4646
{id}
47-
class="mdc-switch"
47+
class="mdc-switch {$$props.class}"
4848
class:mdc-switch--selected={selected}
4949
class:mdc-switch--unselected={!selected}
5050
type="button"

0 commit comments

Comments
 (0)