File tree Expand file tree Collapse file tree 1 file changed +22
-10
lines changed Expand file tree Collapse file tree 1 file changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,22 @@ export const Demo = () => {
1717
1818 return (
1919 < div >
20- < div
20+ < pre
21+ style = { {
22+ marginBottom : 20 ,
23+ backgroundColor : color . hex ,
24+ } }
25+ >
26+ { JSON . stringify ( color , null , 2 ) }
27+ </ pre >
28+ < pre
2129 style = { {
22- width : 50 ,
23- height : 50 ,
2430 marginBottom : 20 ,
2531 backgroundColor : color . rgba ,
2632 } }
2733 >
28- { color . rgba }
29- </ div >
34+ { JSON . stringify ( color , null , 2 ) }
35+ </ pre >
3036 < input
3137 type = "color"
3238 value = { color . hex }
@@ -48,16 +54,22 @@ export const Alpha = () => {
4854
4955 return (
5056 < div >
51- < div
57+ < pre
58+ style = { {
59+ marginBottom : 20 ,
60+ backgroundColor : color . hex ,
61+ } }
62+ >
63+ { JSON . stringify ( color , null , 2 ) }
64+ </ pre >
65+ < pre
5266 style = { {
53- width : 50 ,
54- height : 50 ,
5567 marginBottom : 20 ,
5668 backgroundColor : color . rgba ,
5769 } }
5870 >
59- { color . rgba }
60- </ div >
71+ { JSON . stringify ( color , null , 2 ) }
72+ </ pre >
6173 < InputColor initialValue = "#5e72e412" onChange = { handleChange } />
6274 </ div >
6375 ) ;
You can’t perform that action at this time.
0 commit comments