@clipmx/switch

Clip UI switch form control

Usage no npm install needed!

<script type="module">
  import clipmxSwitch from 'https://cdn.skypack.dev/@clipmx/switch';
</script>

README

Clip Switch

Installation

npm install @clipmx/switch --save

Usage

import React from 'react';
import Switch from '@clipmx/switch';

const MyComponent = () => (
  <div>
    Hello World
    <Switch label="I'm a control" />
  </div>
);

export default MyComponent;

Props

This is a wrapper of the Material-UI switch, so you can use any props that Material-UI supports.