Arctic Design
Get StartedFoundationsComponentsExamples
K

Switch

Allows users to toggle between two states, typically representing on and off, with a sliding switch control.

Usage
Enable Arctic Design
Size
Disabled
Read Only
import { useState } from 'react';
import { Switch } from '@arctic-kit/snow';
function Demo() {
const [checked, setChecked] = useState(false);
return (
<Switch
label="Enable Arctic Design" color="primary" size="medium"
onToggle={() => setChecked(!checked)}
checked={checked}
/>
);
}

API Reference

PropsTypeDefault
checkedboolean | undefinedfalse
colorSnowColorprimary
disabledboolean | undefinedfalse
labelstring | undefined---
onToggle(() => void) | undefined---
readOnlyboolean | undefinedfalse
size"small" | "medium" | "large"medium