Switch🌗

The switch is used to switch between two different states

Code demonstration

import { USwitch } from 'ungeui'

basic usage🖱️

Different sizes🔥

Custom value🌈

Props

Parameterdescriptiontypedefault value
checkedcheckbooleanfalse
sizeswitch size'small' | 'medium' | 'large''medium'
checkedValueselected valueboolean | string | numbertrue
uncheckedValuenot selected valueboolean | string | numberfalse
on-Changeevent triggered by the switch button(e:MouseEvent) => voidundefined

Last Updated: