0.1.5 • Published 2 years ago
simple-palette-component v0.1.5
simple-palette-component
USAGE
import { Canvas, Palette } from 'simple-palette-component'
const App = () => {
return (
<div class="App">
<Canvas />
<Palette />
</div>
);
}
export default App;
Canvas
You can display components that allow you to draw simple pictures.
Palette
You can display a simple color picker. It is also possible to pass the selected color to the calling component.
const[color, setColor] = useState<string>('#000000');
<Palette onChangeColor={setColor} />