-
- Welcome!
-
- This is a React UI component used to display a toggle button control.
- It used a simple input type checkbox with special wrap HTML markup.
-
-
-
-
-Support or Contact
-
-Having trouble with Pages? Check out the documentation at https://github.com/gfazioli/react-toggle or contact giovambattista.fazioli@gmail.com and we’ll help you sort it out.
-
-
-
-
-
-
-
-
diff --git a/examples/src/index.js b/examples/src/index.js
deleted file mode 100644
index dcd4862..0000000
--- a/examples/src/index.js
+++ /dev/null
@@ -1,210 +0,0 @@
-import React from "react"
-import {render} from "react-dom"
-
-import "./stylesheets/normalize.css"
-import "./stylesheets/stylesheet.css"
-import "./stylesheets/github-light.css"
-import "./stylesheets/styles.css"
-
-import Toggle from "../../src"
-import "../../styles.css"
-
-class App extends React.Component {
-
- constructor( props )
- {
- super( props );
-
- this.state = {
- theme : "round",
- themeChecked : false,
- checked : false,
- };
- }
-
- onToggle( e, evt )
- {
- const theme = (this.state.theme === "square") ? "round" : "square";
-
- this.setState(
- {
- theme : theme,
- themeChecked : (this.state.theme === "round"),
- }
- );
- }
-
- render()
- {
-
- const code = [
- {
- label : "Basic usage",
- code : `import React from "react"
-
-import Toggle from "react-toggle"
-import "react-toggle-component/styles.css"
-
-class Application extends React.Component {
-
- constructor( props )
- {
- super( props );
-
- this.state = {checked:false}
- }
-
- render() {
- return (
-