react-select-virtualized
Advanced tools
Comparing version 0.0.13 to 0.0.14
{ | ||
"name": "react-select-virtualized", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "react-select v2 + react-virtualized + react hooks", | ||
@@ -28,3 +28,3 @@ "author": "guiyep", | ||
"build": "rollup -c", | ||
"build-prod": "NODE_ENV=production rollup -c", | ||
"build-prod": "NODE_ENV=production BABEL_ENV=production rollup -c", | ||
"start": "rollup -c -w", | ||
@@ -31,0 +31,0 @@ "deploy": "gh-pages -d", |
@@ -24,3 +24,3 @@ # react-select-virtualized | ||
NOTE: "react-hover-observer" is temporary until I implement it myself. | ||
NOTE: "react-hover-observer" is temporary until I implement it myself. | ||
@@ -61,7 +61,21 @@ ```bash | ||
## Usage | ||
## Documentation | ||
SOON | ||
## Usage without group | ||
check storybook for more examples | ||
```jsx | ||
const options = [ | ||
{ | ||
value: 1, | ||
label: `guiyep`, | ||
}, | ||
... | ||
]; | ||
``` | ||
```jsx | ||
import React, { Component } from 'react'; | ||
@@ -71,11 +85,47 @@ | ||
class Example extends Component { | ||
const Example extends Component { | ||
render() { | ||
return <Select />; | ||
return <Select options={options}/>; | ||
} | ||
} | ||
const Example2 = () => <Select options={options}/> | ||
``` | ||
## Usage with group | ||
check storybook for more examples | ||
```jsx | ||
const options = [ | ||
{ | ||
value: 1, | ||
label: `guiyep`, | ||
}, | ||
... | ||
]; | ||
const opsGroup = [ | ||
{ label: `Group Name Header`, options }, | ||
... | ||
] | ||
``` | ||
```jsx | ||
import React, { Component } from 'react'; | ||
import Select from 'react-select-virtualized'; | ||
const Example extends Component { | ||
render() { | ||
return <Select options={options} grouped/>; | ||
} | ||
} | ||
const Example2 = () => <Select options={options} grouped/> | ||
``` | ||
## License | ||
MIT © [guiyep](https://github.com/guiyep) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36715
129
1