2.0.3 • Published 6 years ago

@materialr/switch v2.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

MaterialR Switch

@materialr/switch

Build Status Coverage Status NSP Status semantic-release

React Material switch implementation

Installation

$ npm install --save @materialr/switch

Demo

A full demo is available on the MaterialR website showcasing all variants.

Components

Default export

import Switch from '@materialr/switch';

Props

PropTypeRequiredDefaultDescription
checkedboolNofalseWhether the switch is on
classNamestringNoundefinedAdditional classNames to add
disabledboolNofalseWhether the switch is disabled
idstringNouuidv1()The id attribute of the element
labelstringYesN/AThe label to render for the switch
namestringNoundefinedThe element's name attribute
onBlurfuncNoundefinedThe blur event handler
onChangefuncNoundefinedThe change event handler
onDragStartfuncNoundefinedThe dragstart event handler
onDropfuncNoundefinedThe drop event handler
onFocusfuncNoundefinedThe focus event handler
2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago