JSPM

react-color-picker-package

1.1.3
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q31558F

    Package Exports

    • react-color-picker-package
    • react-color-picker-package/dist/index.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 (react-color-picker-package) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    React Color Picker Component

    A customizable and lightweight React color picker component to integrate easily into your projects.

    Features

    • Easy to use and customizable
    • Supports real-time color updates
    • Minimal and intuitive design

    Installation

    To install the package, run the following command:

    npm install react-color-picker-package
    import React, { useState } from 'react';
    import ColorPicker from 'react-color-picker-package';
    
    function App() {
      const [color, setColor] = useState('#ff0000');
    
      return (
        <div>
          <h1>React Color Picker</h1>
          <ColorPicker 
            defaultColor={color} 
            onChange={(newColor) => setColor(newColor)} 
          />
          <p>Selected Color: {color}</p>
        </div>
      );
    }
    
    export default App;