0.1.11 • Published 2 years ago

@hrnet-plugins/react-selectmenu v0.1.11

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

@hrnet-plugins/react-selectmenu

Table of Contents

Installation

To install, you can use npm or yarn:

$ npm install --save @hrnet-plugins/react-selectmenu
$ yarn add @hrnet-plugins/react-selectmenu

Examples

Here is a simple example of react-selectmenu being used in an app:

import { SelectMenu } from '@hrnet/react-selectmenu';

function App() {
  const options = [
    { option: "option1", value: "value1" },
    { option: "option2", value: "value2" },
    { option: "option3", value: "value3" }
  ];

  const handleChange = event => {
    console.log(event.target.value);

    const { name, value } = event.currentTarget;
    console.log(name, value);
  };

  return (
    <div className="App">
      <SelectMenu id="select-example" options={ options } onChange={ handleChange } />
    </div>
  );
}

Demo

Demo - https://codesandbox.io/s/hrnet-react-selectmenu-e5e8ov

0.1.11

2 years ago

0.1.10

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