
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.
react-fancy-select
Advanced tools
Your designer has supplied you with a awesome looking select / dropdown list, not knowing that we still can't style native selects nicely.
With react-fancy-select, you're provided a custom implementation of a select / dropdown that you can style as much as you like.
npm i react-fancy-select
yarn add react-fancy-select
import React from "react";
import FancySelect from "react-fancy-select";
import "react-fancy-select/lib/react-fancy-select.css";
const items = [{
id: 0,
value: 'Apple',
text: 'Apple',
}, {
id: 1,
value: 'Orange',
text: 'Orange',
}, {
id: 2,
value: 'Pear',
text: 'Pear',
}];
const Component = () => (
<FancySelect
items={items}
onSelection={(item) => alert(`You selected ${item.text}`)}
/>
);
| Property | Type | Default | Description |
|---|---|---|---|
items | array | undefined | array of items |
onSelection | function | undefined | callback fires upon item selection with selected object as parameter |
useNative | boolean | true | if true, positions and hides a select element on top of the component on mobile devices to trigger native select |
placeholder | string | Please select... | placeholder text to display before selection |
name | string | null | name to give to select element if being used in a form for requests |
defaultValue | string | null | the default selected value |
| Property | Description |
|---|---|
.FancySelect__Control | the visible select component wrapper |
.FancySelect__List | the dropdown list |
.FancySelect__ListItem | the dropdown list items |
.FancySelect__ListItem:hover | the dropdown list items on hover |
.FancySelect__ListItem--focused | the dropdown list items on focus (with keyboard arrows) |
FAQs
react-fancy-select customizable react dropdown component
The npm package react-fancy-select receives a total of 0 weekly downloads. As such, react-fancy-select popularity was classified as not popular.
We found that react-fancy-select demonstrated a not healthy version release cadence and project activity because the last version was released 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
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.