Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@easyguide/select
Advanced tools
Camponents select ui
npm install --save @easyguide/select
import React, {Fragment} from 'react'
import Select from '@easyguide/select'
class Example extends Component {
render() {
const data = [{key: 1, value: 'Option 1'}, {key: 2, value: 'Option 2'}]
return (
<Fragment>
<Select
data={data}
onChange={item => console.log(`value:${item.value}`)}
render={item => (
<div>
<span>
<img
style={{
marginRight: 10,
verticalAlign: 'bottom',
}}
width="20"
height="20"
src="https://cdn4.iconfinder.com/data/icons/48-bubbles/48/04.Bank-512.png"
/>
<span>{item.value}</span>
</span>
</div>
)}
renderListItem={item => `${item.key} - ${item.value}`}
/>
</Fragment>
)
}
}
import React, {Fragment} from 'react'
import Select from '@easyguide/select'
class Example extends Component {
render() {
const data = [{key: 1, value: 'Option 1'}, {key: 2, value: 'Option 2'}]
return (
<Fragment>
<Select
liveSearch
data={data}
placeholder="Digite uma opção"
onChange={item => console.log(`value:${item.value}`)}
renderListItem={item => `${item.key} - ${item.value}`}
render={item => (
<div>
<span>
<img
style={{
marginRight: 10,
verticalAlign: 'bottom',
}}
width="20"
height="20"
src="https://cdn4.iconfinder.com/data/icons/48-bubbles/48/04.Bank-512.png"
/>
<span>{item.value}</span>
</span>
</div>
)}
/>
</Fragment>
)
}
}
MIT © iamtchelo
FAQs
Components select ui
We found that @easyguide/select demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.