File tree 4 files changed +4
-4
lines changed
skeleton-react/src/lib/components/Switch
skeleton-svelte/src/lib/components/Switch
sites/next.skeleton.dev/src
content/docs/components/switch
examples/components/switch
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const Switch: React.FC<SwitchProps> = ({
44
44
} ) => {
45
45
// Set Compact Mode
46
46
if ( compact ) {
47
- base = ` ${ thumbBase } aspect-square` ;
47
+ base = thumbBase ;
48
48
// Removes the height class
49
49
height = "" ;
50
50
// Thumb inherits track styles
Original file line number Diff line number Diff line change 43
43
44
44
// Set Compact Mode
45
45
if (compact ) {
46
- base = ` ${ thumbBase } aspect-square ` ;
46
+ base = thumbBase ;
47
47
// Removes the height class
48
48
height = ' ' ;
49
49
// Thumb inherits track styles
Original file line number Diff line number Diff line change 2
2
title : Switch
3
3
description : A control for toggling between checked states.
4
4
srcSvelte : ' /src/lib/components/Switch'
5
- srcReact : ' /src/components/Switch'
5
+ srcReact : ' /src/lib/ components/Switch'
6
6
srcAlly : ' https://www.w3.org/WAI/ARIA/apg/patterns/switch/'
7
7
showDocsUrl : true
8
8
---
Original file line number Diff line number Diff line change 5
5
let state = $state (false );
6
6
</script >
7
7
8
- <Switch id ="example" name ="example" bind:checked ={state } onCheckedChange ={() => console .log ({ state }) } />
8
+ <Switch id ="example" name ="example" bind:checked ={state } onCheckedChange ={console .log } />
You can’t perform that action at this time.
0 commit comments