You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-select-search-sm

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-search-sm

React Select Search component that supports single and multiple selections.

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
54
-94.32%
Maintainers
1
Weekly downloads
 
Created
Source

react-select-search-sm

A lightweight and customizable React dropdown component with support for:

  • ✅ Single and Multi Select modes
  • 🔍 Searchable options
  • ✨ Clean and flexible UI

Demo

Demo

Installation

npm install react-select-search-sm

Import CSS

To apply the default styles, import the CSS file in your root component or wherever appropriate:

import "react-select-search-sm/dist/index.css";

Usage in ReactJs

import React, { useState } from "react";
import SelectSearch from "react-select-search-sm";
import "react-select-search-sm/dist/index.css";

const options = [
{ name: "Option A", value: "A" },
{ name: "Option B", value: "B" },
];

function App() {
const [selected, setSelected] = useState([]);

return (
<SelectSearch
options={options}
selectedOption={selected}
setSelectedOption={setSelected}
multi={false} // true -- for multi select
label="Select item"
searchPlaceholder="Search"
handleChange=null
/>
);
}

export default App;

Props

PropTypeDefaultDescription
optionsarray[]List of options (each with name and value keys)
selectedOptionarray[]Currently selected option(s)
setSelectedOptionfunction() => {}Setter to update selected option(s)
multibooleanfalseEnables multi-select mode if true, single-select if false
labelstring"Select"Placeholder label shown when nothing is selected
searchPlaceholderstring"search.."Placeholder inside the search input
notFoundstring"No data found"Text shown when no options match the search term
handleChangefunctionnullOptional callback triggered when selection changes

Keywords

react

FAQs

Package last updated on 27 Jul 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.