File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010## 3.0.0
1111
1212- true alpha support with ` initialValue `
13+ - remove ` initialHexColor ` support
1314- set alpha 0 - 100
1415
1516## 2.0.29
Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ yarn add react-input-color
2727
2828### Usage
2929
30+ The ` initialValue ` property supports 6 (` #RRGGBB ` ) and 8 (` #RRGGBBAA ` ) digits hex value.
31+
3032``` javascript
3133import React from ' react' ;
3234import InputColor from ' react-input-color' ;
Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ export const Demo = () => {
2222 width : 50 ,
2323 height : 50 ,
2424 marginBottom : 20 ,
25- backgroundColor : color . hex
25+ backgroundColor : color . rgba
2626 } }
2727 >
28- { color . hex }
28+ { color . rgba }
2929 </ div >
3030 < input
3131 type = "color"
You can’t perform that action at this time.
0 commit comments