Skip to main content

Switch Box

If you need to represent the switching between two states or on-off state.

Usage

import React from 'react';
import { Switch } from 'qdm-component-library';

function App() {
return (
<Switch />
);
}
export default App;

Reference

Props

className

The additional class to Switch string

id

props for providing id to switch component string

name

props for providing name to switch component string

children

props for providing children for switch Component React Node

disabled

Disable switch boolean

size

The size of the Switch medim for string

value

props for providing value for switch Component any

inLineStyles

props give addition props to the switch Component type Object