react-switchable
Advanced tools
+1
-1
| { | ||
| "name": "react-switchable", | ||
| "version": "0.4.0", | ||
| "version": "0.4.1", | ||
| "description": "A customizable react switch component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+2
-2
@@ -93,2 +93,3 @@ # [react](https://reactjs.org)-switchable | ||
| <Switch | ||
| name="countries" | ||
| onItemSelected={(selectedIndex) => { | ||
@@ -125,2 +126,3 @@ this.setState({ | ||
| <Switch | ||
| name="countries" | ||
| onItemChanged={country =>this.setState({ selectedCountry: country })}> | ||
@@ -166,3 +168,2 @@ <Item value="Russia">Russia</Item> | ||
| `arrowSelection` | boolean | No | true | Enables the selection of Items with arrow keys. | ||
| `tabIndex` | number | No | 0 | Sets the [tabIndex](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex). | ||
@@ -178,3 +179,2 @@ Inherits all other properties assigned from the parent component | ||
| `disable` | boolean | No | false | Disables the Item. | ||
| `tabIndex` | number | No | 0 | Sets the [tabindex](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex). | ||
@@ -181,0 +181,0 @@ Inherits all other properties assigned from the parent component. |
24218
-0.8%