JSPM

@ingirorhaun/oc-react-dropdown-select

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • 0
    • Score
      100M100P100Q44296F
    • License MIT

    Dropdown select component for React

    Package Exports

    • @ingirorhaun/oc-react-dropdown-select
    • @ingirorhaun/oc-react-dropdown-select/dist/index.es.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ingirorhaun/oc-react-dropdown-select) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    React Dropdown Select

    A customizable dropdown select component for React applications.

    Installation

    npm install @ingirorhaun/oc-react-dropdown-select

    Usage

    import DropdownSelect from "@ingirorhaun/oc-react-dropdown-select";
    
    const options = [
      { value: "option1", label: "Option 1" },
      { value: "option2", label: "Option 2" },
    ];
    
    function App() {
      const handleSelect = (e) => {
        console.log("Selected:", e.target.value);
      };
    
      return (
        <DropdownSelect
          options={options}
          onSelect={handleSelect}
          id="my-dropdown"
        />
      );
    }