
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
select-paginated
Advanced tools
`SelectPaginated` is a React component that provides a dropdown with features like pagination, search, and both single and multi-select options. It can source data from both the client-side and an API. By fetching data in small chunks and using local stor
SelectPaginated is a React component that provides a dropdown with features like pagination, search, and both single and multi-select options. It can source data from both the client-side and an API. By fetching data in small chunks and using local storage to remember the fetched data, it efficiently handles large datasets. This approach keeps the dropdown fast and responsive, ensuring a smooth user experience.
Import SelectPaginated in your React application and use it as follows:
import React from 'react'
import SelectPaginated from 'select-paginated';
function Test() {
const options = [
{ id: 1, name: 'Option 1', description: 'This is the first option' },
{ id: 2, name: 'Option 2', description: 'This is the second option' }
];
return (
<>
<SelectPaginated
// Provide `options` prop when `api` prop is not being used
options={options}
// Provide `api` prop when `options` prop is not being used
api={{
resourceUrl: "https://jsonplaceholder.typicode.com/comments",
pageParamKey: "_page",
limitParamKey: "_limit",
// Final endpoint: "https://jsonplaceholder.typicode.com/comments?_page=1&_limit=50"
}}
displayKey="name"
pageSize={50}
isLinearArray={false}
onSelect={(selectedItems) => {
console.log('selected items :: ', JSON.stringify(selectedItems));
}}
onRemove={(removedItem) => {
console.log('Removed items :: ', JSON.stringify(removedItem));
}}
multiSelect={true}
searchPlaceholder="Search..."
localStorageKey="SelectFetchedData"
/>
</>
)
}
export default Test
options(array,required when api prop is not provided )pageSize(number,default:50) :isLinearArray(boolean,default:false) :options prop is a simple linear array of primitive values (e.g., strings, numbers).displayKey is needed.options prop is an array of objects.displayKey must be specified to indicate which property to display.[
{"name": "id labore ex et quam laborum","email": "Eliseo@gardner.biz",},
{"name": "quo vero reiciendis velit similique earum","email": "Jayne_Kuhic@sydney.com"},
]
displayKey to the property you want to display, e.g., "email".displayKey(string,default:'name',required only when isLinearArray is false) :[
{"name": "id labore ex et quam laborum","email": "Eliseo@gardner.biz",},
{"name": "quo vero reiciendis velit similique earum","email": "Jayne_Kuhic@sydney.com"},
]
displayKey to "email".api(object,required when options prop is not provided) :resourceUrl (string, required):
pageParamKey (string, optional, default: "_page") :
limitParamKey (string, optional, default: "_limit") :
onSelect (function, optional) :onRemove (function, optional) :multiSelect (boolean, optional, default: true) :searchPlaceholder (string, optional, default: "Search...") :localStorageKey (string, optional, default: "SelectFetchedData") :FAQs
`SelectPaginated` is a React component that provides a dropdown with features like pagination, search, and both single and multi-select options. It can source data from both the client-side and an API. By fetching data in small chunks and using local stor
We found that select-paginated demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.