diff --git a/packages/color/README.md b/packages/color/README.md index f1b942e69..185bd34f1 100644 --- a/packages/color/README.md +++ b/packages/color/README.md @@ -1,6 +1,6 @@
- @uiw/react-color + @uiw/react-color
diff --git a/website/src/App.tsx b/website/src/App.tsx index 93a21c224..1627c5429 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -245,7 +245,7 @@ export default function App() { onChange={(hsva) => setHsva(hsva)} /> -
+
+ { + setHsva({ ...hsva, ...color.hsva }); + }} + /> + {`<Colorful color="${hsvaToHex(hsva)}" />`} +
+
{ @@ -289,19 +298,18 @@ export default function App() { /> {`<Sketch color="${hsvaToHex(hsva)}" />`}
-
- + { setHsva({ ...hsva, ...color.hsva }); }} /> - {`<Compact color="${hsvaToHex(hsva)}" />`} - setHsva({ ...hsva, ...color.hsv })} /> - {`<Slider color="${hsvaToHex(hsva)}" />`} + {`<Block color="${hsvaToHex(hsva)}" />`} +
+
+
+
{ setHsva({ ...hsva, ...color.hsva }); }} @@ -332,24 +340,40 @@ export default function App() { {`<Circle color="${hsvaToHex(hsva)}" />`}
- { + setHsva({ ...hsva, ...color.hsva }); + }} + /> + {`<Compact color="${hsvaToHex(hsva)}" />`} + setHsva({ ...hsva, ...color.hsv })} /> + {`<Slider color="${hsvaToHex(hsva)}" />`} +
+
+ { setHsva({ ...hsva, ...color.hsva }); }} /> - {`<Colorful color="${hsvaToHex(hsva)}" />`} + {`<Wheel color="..." />`}
- { setHsva({ ...hsva, ...color.hsva }); }} /> - {`<Wheel color="${hsvaToHex(hsva)}" />`} + {`<Github color="${hsvaToHex(hsva)}" />`}
{`<Material color="${hsvaToHex(hsva)}" />`}
-
- { - setHsva({ ...hsva, ...color.hsva }); - }} - /> - {`<Block color="${hsvaToHex(hsva)}" />`} -
-
-
-
- { - setHsva({ ...hsva, ...color.hsva }); - }} - /> - {`<Github color="${hsvaToHex(hsva)}" />`} -