@@ -172,44 +172,6 @@ function DisabledSwitch() {
172172 )
173173}
174174
175- // Switch Sizes
176- function SwitchSizes ( ) {
177- const [ small , setSmall ] = React . useState ( false )
178- const [ defaultSize , setDefaultSize ] = React . useState ( true )
179- const [ large , setLarge ] = React . useState ( false )
180-
181- return (
182- < div className = "space-y-6" >
183- < div className = "space-y-4" >
184- < div className = "flex items-center justify-between" >
185- < Label htmlFor = "small-switch" > Small Switch</ Label >
186- < Switch
187- id = "small-switch"
188- checked = { small }
189- onCheckedChange = { setSmall }
190- className = "h-4 w-8"
191- />
192- </ div >
193-
194- < div className = "flex items-center justify-between" >
195- < Label htmlFor = "default-switch" > Default Switch</ Label >
196- < Switch id = "default-switch" checked = { defaultSize } onCheckedChange = { setDefaultSize } />
197- </ div >
198-
199- < div className = "flex items-center justify-between" >
200- < Label htmlFor = "large-switch" > Large Switch</ Label >
201- < Switch
202- id = "large-switch"
203- checked = { large }
204- onCheckedChange = { setLarge }
205- className = "h-8 w-16"
206- />
207- </ div >
208- </ div >
209- </ div >
210- )
211- }
212-
213175// Switch with Form
214176function SwitchWithForm ( ) {
215177 const [ formData , setFormData ] = React . useState ( {
@@ -412,15 +374,6 @@ export function SwitchSection() {
412374 </ div >
413375 </ PlaygroundCard >
414376
415- < PlaygroundCard title = "Switch Sizes" categoryTitle = "Component" >
416- < Typography type = "body" className = "text-muted-foreground mb-4" >
417- Switches in different sizes: small, default, and large.
418- </ Typography >
419- < div className = "p-4 bg-secondary w-full rounded-lg" >
420- < SwitchSizes />
421- </ div >
422- </ PlaygroundCard >
423-
424377 < PlaygroundCard title = "Switch with Form" categoryTitle = "Component" >
425378 < Typography type = "body" className = "text-muted-foreground mb-4" >
426379 Switches integrated into a form with multiple options and state management.
0 commit comments