An open API service indexing awesome lists of open source software.

https://github.com/theprojectsx/react-custom-select

React component for Custom Dropdown select
https://github.com/theprojectsx/react-custom-select

react react-component react-select

Last synced: about 2 months ago
JSON representation

React component for Custom Dropdown select

Awesome Lists containing this project

README

          

# Custom Select Component for React

Simple Custom Select component created using React JS and Raw CSS

Example: [here](https://react-custom-select-x.vercel.app/)

### Usages:

```jsx
const simpleOptions = [
{ label: "Apple", value: "apple" },
{ label: "Banana", value: "banana" },
{ label: "Cherry", value: "cherry" },
{ label: "Date", value: "date" },
{ label: "Elderberry", value: "elderberry" },
{ label: "Fig", value: "fig" },
{ label: "Grape", value: "grape" },
{ label: "Honeydew", value: "honeydew" },
];

const consoleElementSelected = (item) => {
console.log("Selected Item(s):", item);
};
const consoleElementSearch = (value) => {
console.log("Searched Value:", value);
};
const consoleMenuOpen = () => {
console.log("Menu Opened");
};

;
```

## Key Features:

- **Single and Multiple Selection:** The component supports both single and multiple value selection.
- **Searchable Options:** Users can search for specific options within the dropdown.
- **Clearable Options:** Selected options can be easily cleared.
- **Grouped Items:** Options are displayed in organized groups.
- **Accessibility:** The component is designed to be accessible for all users.
- **Responsive Design:** The component is fully responsive, ensuring optimal usability across various devices.