1.1.2 • Published 1 year ago

hrnet_plugin_boudra_tristan v1.1.2

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Convert plugin dropdown from jQuery to React

This project aims to create a plugin dropdown component in React, serving as a modern alternative to traditional jQuery-based dropdowns.

Overview

This React plugin dropdown is designed to provide a more efficient and flexible solution compared to the conventional jQuery dropdowns. By leveraging React's component-based architecture, it offers improved scalability, reusability, and maintainability.

Features

  • Modernity: Utilizes modern React syntax and best practices for enhanced development experience.
  • Component-based: Built as a reusable React component, facilitating integration into various React applications.
  • Customization: Provides options for customization, such as default option text, value, and event handling.
  • Accessibility: Designed with accessibility in mind, ensuring compliance with web accessibility standards.

Installation

  1. Download the npm package.
  2. Follow the usage instructions below.

Usage

<Select
  id="selectState"
  options={states}
  defaultOptionText="Select State"
  value={selectedStateOption ? selectedStateOption.abbreviation : ""}
  onChange={handleStateChange}
/>

Props

  • id: Identifier for the dropdown select element.
  • options: Array of objects representing the options for the dropdown.
  • defaultOptionText: Text to display as the default option.
  • value: Value of the currently selected option.
  • onChange: Callback function triggered when the selected option changes.

Author

Boudra Tristan

Feel free to contribute or provide feedback to enhance this plugin further.

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

0.1.0

1 year ago