Skip to main content

Switch

Uncontrolled

Result
Loading...
Live Editor

Controlled

Result
Loading...
Live Editor

Analytics

The Switch component is trackable through Kyber Analytics. This is the default analytics config.

export default {
value: 'Switch',
actions: {
onChange: { type: 'SWITCH_CHANGE', payload: 'Change' },
},
};

Props