Skip to content

components/switch

@fungi.computer/caps


@fungi.computer/caps / components/switch

SwitchProps = object & Omit<InputHTMLAttributes<HTMLInputElement>>, "defaultValue" | "type">>

Props accepted by Switch.

optional onCheckedChange?: (checked) => void

Called after the checked state changes.

boolean

void

const Switch: ForwardRefExoticComponent<object & Omit<InputHTMLAttributes<HTMLInputElement>>, "type" | "defaultValue"> > & RefAttributes<HTMLInputElement>>>>

A switch primitive with caller-owned checked state.