Skip to content

Commit f67e863

Browse files
committed
update readme
1 parent d36f408 commit f67e863

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
3133
import React from 'react';
3234
import InputColor from 'react-input-color';

stories/InputColor.stories.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)