
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
custom-dropdown-react-bl
Advanced tools
A customizable, accessible, and lightweight dropdown component for React.
npm install custom-dropdown-react-bl
## import and usage
import CustomDropdown from 'custom-dropdown-react-bl';
import 'custom-dropdown-react-bl/dist/CustomDropdown.css'; // Required styles
const options = [
{ label: 'Apple', value: 'apple' },
{ label: 'Banana', value: 'banana' },
];
function Example() {
const [selected, setSelected] = useState(null);
return (
<CustomDropdown
label="Fruits"
value={selected}
onChange={setSelected}
options={options}
placeholder="Select a fruit"
/>
);
}
## Props
| Prop | Type | Required | Description |
| ------------- | --------------------------------- | -------- | ---------------------------------- |
| `label` | `string` | No | Optional label above the dropdown |
| `value` | `any` | No | Currently selected value |
| `onChange` | `(value: any) => void` | Yes | Callback triggered on value change |
| `options` | `{ label: string, value: any }[]` | Yes | List of dropdown options |
| `placeholder` | `string` | No | Placeholder when no value selected |
#Accessibility
This component follows accessibility best practices:
Keyboard navigation (up/down/enter/escape)
Focus trap on open
Contrast-optimized placeholder text
Semantic HTML structure
Supports screen readers
Passes Lighthouse Accessibility audits (100%)
#Example with Form
const departments = [
{ label: 'Sales', value: 'sales' },
{ label: 'Engineering', value: 'engineering' },
];
<CustomDropdown
label="Department"
value={selectedDept}
onChange={setSelectedDept}
options={departments}
placeholder="Select a department"
/>
#links
🔗 Links
📦 View on npm :https://www.npmjs.com/package/custom-dropdown-react-bl
💻 Compatible with React 16, 17, 18, 19+
FAQs
An accessible and customizable dropdown component for React
The npm package custom-dropdown-react-bl receives a total of 2 weekly downloads. As such, custom-dropdown-react-bl popularity was classified as not popular.
We found that custom-dropdown-react-bl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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 CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.