components/switch
@fungi.computer/caps / components/switch
components/switch
Section titled “components/switch”Type Aliases
Section titled “Type Aliases”SwitchProps
Section titled “SwitchProps”SwitchProps =
object&Omit<InputHTMLAttributes<HTMLInputElement>>,"defaultValue"|"type">>
Props accepted by Switch.
Type Declaration
Section titled “Type Declaration”onCheckedChange?
Section titled “onCheckedChange?”
optionalonCheckedChange?: (checked) =>void
Called after the checked state changes.
Parameters
Section titled “Parameters”checked
Section titled “checked”boolean
Returns
Section titled “Returns”void
Variables
Section titled “Variables”Switch
Section titled “Switch”
constSwitch:ForwardRefExoticComponent<object&Omit<InputHTMLAttributes<HTMLInputElement>>,"type"|"defaultValue"> > &RefAttributes<HTMLInputElement>>>>
A switch primitive with caller-owned checked state.