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

react-select-menu-valentindft

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-select-menu-valentindft

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Select Menu

This is a component for an input list https://www.npmjs.com/package/react-select-menu-valentindft

Model

Prerequisites

This project requires NodeJS and NPM. Node and NPM are really easy to install. Make sure there are install in your device.

Installation

Install the npm package in your project

npm i react-select-menu-valentindft

How to use it

Import

import { SelectMenu } from 'react-select-menu-valentindft';

Component

// data is the data you want to list inside the input
// you can add an id to the input
// inputValue is the input value selected

<SelectMenu data={myData} id='some id' inputValue={valueSelectMenuMyData} />

Inject Data

// The structure of your data need to be an array of object with key name

const myData: Array<object> = [
   {
      name: 'First value'
   },
   {
      name: 'Second value'
   },
   {
      name: 'Third value'
   }
]

Model

Input value

let stateInput: string;

const valueSelectMenuMyData = (value: string) => {
    stateInput = value;
};

Keywords

react

FAQs

Package last updated on 01 Nov 2023

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