New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-select-ui

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-ui

An elegant and lightweight React component designed for simplicity and performance.

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

Select UI

An elegant and lightweight React component designed for simplicity and performance.

The goal of this project is to provide a scalable, customizable, and versatile Select component, designed to meet the needs of modern applications. As you explore the features, we hope you'll see how it can be tailored to fit a wide range of use cases.

Getting Started

⚠️ Warning: This project is compatible with React v18. Support for React v19 is not available yet.

To get started, simply install the package via npm:

npm i react-select-ui

Once installed, you can import the Select component in your project, and you are good to go.

import { useState } from "react";
import { Select } from "react-select-ui";

type Plant = {
  id: number;
  name: string;
  type: string;
};

const options = [
  { id: 1, name: "Orange", type: "fruit" },
  { id: 2, name: "Lemon", type: "fruit" },
  { id: 3, name: "Banana", type: "fruit" },
  { id: 4, name: "Cherry", type: "fruit" },
  { id: 5, name: "Peach", type: "fruit" },
  { id: 6, name: "Onion", type: "vegetable" },
  { id: 7, name: "Potato", type: "vegetable" },
  { id: 8, name: "Broccoli", type: "vegetable" },
  { id: 9, name: "Carrot", type: "vegetable" },
  { id: 10, name: "Spinach", type: "vegetable" },
];

const SingleValue = () => {
  const [value, setValue] = useState<Plant[]>([]);

  return (
    <Select
      value={value}
      defaultSelectOptions={options}
      onChange={setValue}
      labelKey="name"
      hasInput={false}
    />
  );
};

export default SingleValue;

Please check out the docs for more info: https://selectui-docs.netlify.app/

FAQs

Package last updated on 18 Mar 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