npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

mui-color-wheel

v1.0.1

Published

A beautiful, customizable color picker component for Material-UI featuring an intuitive color wheel interface

Downloads

18

Readme

MUI Color Wheel 🎨

A beautiful, customizable color picker component for Material-UI featuring an intuitive color wheel interface. Built with React and TypeScript.

Preview TypeScript Size

✨ Features

  • Interactive Color Wheel: Intuitive HSL color selection with smooth interactions
  • Multiple Color Formats: Support for HEX, RGB, HSL, and HSV color models
  • Opacity Control: Alpha channel slider with real-time preview
  • Preset Swatches: Customizable color palette with Material Design colors
  • Eyedropper Tool: Native browser eyedropper for screen color sampling
  • Responsive Design: Works seamlessly on all device sizes
  • Theme Integration: Automatically adapts to your MUI theme (light/dark mode)
  • Accessibility: Full keyboard navigation and ARIA support
  • TypeScript Support: Complete type definitions out of the box
  • Zero Dependencies: Only requires peer dependencies (React, MUI)

🚀 Quick Start

npm install mui-color-wheel
import React, { useState } from 'react';
import { ColorWheel } from 'mui-color-wheel';

function App() {
  const [color, setColor] = useState('#3f51b5');

  return (
    <ColorWheel
      color={color}
      onChange={setColor}
      presetColors={['#f44336', '#4caf50', '#2196f3']}
    />
  );
}

🎯 Use Cases

  • Design systems and theme customizers
  • Graphic editing applications
  • Form inputs with color selection
  • Dashboard configuration panels
  • E-commerce product customization
  • Creative tools and applications

🛠️ Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | color | string | - | Current color value | | onChange | (color: string) => void | - | Callback when color changes | | presetColors | string[] | Material palette | Array of preset colors | | format | 'hex' \| 'rgb' \| 'hsl' | 'hex' | Output color format | | showOpacity | boolean | true | Show alpha slider | | showEyedropper | boolean | true | Show eyedropper button | | disabled | boolean | false | Disable the component | | size | 'small' \| 'medium' \| 'large' | 'medium' | Component size |

🎨 Customization

The component is fully customizable using MUI's theming system:

import { createTheme, ThemeProvider } from '@mui/material';

const theme = createTheme({
  components: {
    MuiColorWheel: {
      styleOverrides: {
        wheel: {
          borderRadius: '50%',
          boxShadow: '0 4px 12px rgba(0,0,0,0.15)',
        },
        swatch: {
          '&:hover': {
            transform: 'scale(1.1)',
          },
        },
      },
    },
  },
});

function App() {
  return (
    <ThemeProvider theme={theme}>
      <ColorWheel color="#3f51b5" onChange={setColor} />
    </ThemeProvider>
  );
}

📱 Demo

Check out the interactive demo: mui-color-wheel.vercel.app

🤝 Contributing

Contributions are welcome! Please read our Contributing Guide for details on our code of conduct and the process for submitting pull requests.

📄 License

MIT © satya subudhi