JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q58141F
  • License MIT

A react-Library-Dropdown

Package Exports

  • react-library-dropdown
  • react-library-dropdown/dist/style.css

Readme

React + Vite

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

Currently, two official plugins are available:

Installation

npm i react-library-dropdown or npm install react-library-dropdown

Actual version : 1.4.3

NPM version : 9.8.1

React version : 18.2.0

Made with VS Code.

Web site

https://github.com/deborah-bude/react-library-dropdown

Usage

Import in JSX file:

import { Dropdown } from "react-library-dropdown"

How use ?

Options parameters

Options required

const options = [
    {
        "name" : "Item content 1"
        "abbreviation" : "IC1"
    }, 
    {
        "name" : "Item content 2"
        "abbreviation" : "IC2"
    }, 
    {
        "name" : "Item content 3"
        "abbreviation" : "IC3"
    }, ]
    
const title = "My dropdown menu"

return <Dropdown title={title} options={options}></Dropdown>

Search option

Default value : false

return <Dropdown title={title} options={options} serach={true}></Dropdown>