@uiw/react-color-editable-input-hsla
TypeScript icon, indicating that this package has built-in type declarations

2.3.2 • Public • Published

React Color Editable Input HSLA

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

EditableInputHSLA Component is a subcomponent of @react-color.

react-color-editable-input-rgba

Install

npm i @uiw/react-color-editable-input-hsla

Usage

import React, { useState } from 'react';
import { hsvaToHex } from '@uiw/color-convert';
import EditableInputHSLA from '@uiw/react-color-editable-input-hsla';

export default function Demo() {
  const [hsva, setHsva] = useState({ h: 209, s: 36, v: 90, a: 1 });
  return (
    <div style={{ padding: '0 10px 0 20px' }}>
      <EditableInputHSLA
        hsva={hsva}
        onChange={(color) => {
          setHsva({ ...hsva, ...color.hsva });
        }}
      />
    </div>
  );
}

Props

import React from 'react';
import { EditableInputRGBAProps } from '@uiw/react-color-editable-input-rgba';
export interface EditableInputHSLAProps extends Omit<EditableInputRGBAProps, 'rProps' | 'gProps' | 'bProps'> {
  hProps?: EditableInputRGBAProps['gProps'];
  sProps?: EditableInputRGBAProps['gProps'];
  lProps?: EditableInputRGBAProps['gProps'];
  aProps?: false | EditableInputRGBAProps['aProps'];
}
declare const EditableInputHSLA: React.ForwardRefExoticComponent<EditableInputHSLAProps & React.RefAttributes<HTMLDivElement>>;
export default EditableInputHSLA;

Contributors

As always, thanks to our amazing contributors!

Made with contributors.

License

Licensed under the MIT License.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.2
8,854latest

Version History

VersionDownloads (Last 7 Days)Published
2.3.2
8,854
2.3.1
191
2.3.0
5,828
2.2.0
0
2.1.1
5,676
2.1.0
136
2.0.9
0
2.0.8
380
2.0.7
0
2.0.6
334
2.0.5
1,349
2.0.4
0
2.0.3
116
2.0.2
130
2.0.1
15
2.0.0
8
1.4.3
1,694
1.4.2
245
1.4.1
1
1.4.00
1.3.40
1.3.31,957
1.3.21
1.3.126
1.3.020
1.2.40
1.2.30
1.2.249
1.2.11
1.2.00
1.1.40
1.1.34
1.1.28
1.1.1281
1.1.00
1.0.120
1.0.111
1.0.101
1.0.920
1.0.80
1.0.70
1.0.60
1.0.57
1.0.40
1.0.31
1.0.20
1.0.10
1.0.00
0.0.300

Package Sidebar

Install

npm i @uiw/react-color-editable-input-hsla

Weekly Downloads

27,334

Version

2.3.2

License

MIT

Unpacked Size

15 kB

Total Files

7

Last publish

Collaborators

  • uiwjs
  • wcjiang