1.0.0 • Published 2 years ago

@chris5477/scroll-menu v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

alt text

Select_menu

Select_menu is a package that allows you to integrate an HTML select. Select_menu use React. By installing this package you will avoid creating a select element and all the options. Currently, this package does not support creating a list without the <optgroup> category option. In the future, this will be possible.

Settings

This package is programmed with React, you must work this language to be able to use it. It uses prop-types to secure transmitted data.

Installation

To install this package on your computed , run this command :

npm i @chris5477/scroll-menu

If in the future , a new version coming , you can upgrade package with this command

npm install @chris5477/scroll-menu@latest

Usage

Here is a simple example to use scroll-menu

'import Select from "@chris5477/scroll-menu"

const App = () => {
return(
    <div className="App">
        <Select arr={[{text : "1", value :1}]}></Select>
    </div>
    )}

export default App'

User guide

Scroll-menu

Allows to select an option among those available

Props

Props NameDescriptionType
idDefine an id to bind label and selectString
textLabelDisplay a text to name the labelString
selectClassA class CSS for select elementString
valueSet value of select elementAny
optionClassA class CSS for option elementString
arrA list object that contains a value and text property in order to fill in the optionsArray
handleChangeA function retrieves the value of the selected option and fills the select value with itFunc

Author

Chris5477

alt text Mon Github

Thank you

1.0.0

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago