Comments (3)
@DenisKaminsky Upgrade v1.2.0
import React, { useState } from 'react';
import Sketch from '@uiw/react-color-sketch';
function Demo() {
const [hex, setHex] = useState("#fff");
const [disableAlpha, setDisableAlpha] = useState(false);
return (
<div>
<Sketch
style={{ marginLeft: 20 }}
color={hex}
disableAlpha={disableAlpha}
onChange={(color) => {
setHex(color.hex);
}}
/>
<button onClick={() => setDisableAlpha(!disableAlpha)}>
disableAlpha={disableAlpha.toString()}
</button>
</div>
);
}
export default Demo;
from react-color.
Nice. But it is still visible on the panel
Also it would be nice to center the text in these cells. You can add "text-align: center" for these inputs
from react-color.
Thank you
from react-color.
Related Issues (20)
- Wheel using HEX instead of HSVA HOT 2
- Wheel shape width/height adaption HOT 2
- onChange 用useCallback 包裹 ,onChange里面无法修改父组件的状态!把useCallback 干掉可以吗? HOT 10
- Shade slider (white color) HOT 1
- Colorful component works incorrectly on mobiles HOT 1
- hex is #00000000 bug
- Direction hue "vertical" HOT 2
- Null/undefined color value HOT 10
- Support hex input with leading # HOT 2
- Typo in Github picker placement enum: "Botton" instead of "Bottom" HOT 1
- Sometimes Wheel don't react to onChange HOT 2
- Change Value for Wheel HOT 7
- Color picking dark color results in jumpy behavior HOT 3
- [color-convert] Circular dependencies error HOT 2
- Direction/angle color issue HOT 1
- Circle with margin HOT 8
- Add type for Hex color HOT 1
- Add eyedropper to Chrome HOT 1
- Wheel cursor disabled HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-color.