JSPM

  • Created
  • Published
  • Downloads 261000
  • Score
    100M100P100Q157064F
  • License MIT

React components for Dailymotion Switch

Package Exports

  • react-switch

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-switch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

React Switch Build Status

Set of React components for Dailymotion Switch

Installation

$ npm install -save react-switch

Usage

import {Button} from 'react-switch'

export default class FollowButton extend React.Component {
    handleClick() {
        API.followUser(this.user)
    }
    render() {
        var classes = 'btn-primary'

        return (
            <Button classes={classes} onClick={this.handleClick}><Icon icon="plus" /></Button>
        )
    }
}

Components

  • Buttons
  • Icons
  • Badges

Todo

  • Alerts
  • Modals
  • Player