包详细信息

@uiw/react-color-shade-slider

uiwjs276.1kMIT2.9.2

Color ShadeSlider component for React.

react, react-color, react-component, color-picker

自述文件

Using my app is also a way to support me:
Vidwall Hub VidCrop Vidwall Mousio Hint Mousio Musicer Audioer FileSentinel FocusCursor Videoer KeyClicker DayBar Iconed Mousio Quick RSS Quick RSS Web Serve Copybook Generator DevTutor for SwiftUI RegexMate Time Passage Iconize Folder Textsound Saver Create Custom Symbols DevHub Resume Revise Palette Genius Symbol Scribe


React Color Shade Slider

Buy me a coffee npm bundle size npm version Open in unpkg

ShadeSlider Component is a subcomponent of @react-color.

react-color-shade-slider

Install

npm i @uiw/react-color-shade-slider

Usage

```jsx mdx:preview import React, { useState } from 'react'; import ShadeSlider from '@uiw/react-color-shade-slider';

export default function Demo() { const [hsva, setHsva] = useState({ h: 0, s: 0, v: 68, a: 1 }); return ( <ShadeSlider hsva={hsva} onChange={(newShade) => { setHsva({ ...hsva, ...newShade }); }} /> ); }


## Props

```ts
import React from 'react';
import { AlphaProps } from '@uiw/react-color-alpha';
export interface ShadeSliderProps extends Omit<AlphaProps, 'onChange'> {
  onChange?: (newShade: {
    v: number;
  }) => void;
}
declare const ShadeSlider: React.ForwardRefExoticComponent<ShadeSliderProps & React.RefAttributes<HTMLDivElement>>;
export default ShadeSlider;

Contributors

As always, thanks to our amazing contributors!

Made with contributors.

License

Licensed under the MIT License.