maaxg / ColorPicker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color Picker

When a color is selected, it should change the background color of the component to the selected color.

Requirements:

  • The component should receive an array of colors as a prop called "colorOptions".
  • The component should display each color as a square box with the corresponding color.
  • When a color box is clicked, the background color of the component should change to the selected color. The initial background color of the component should be white.

About


Languages

Language:Java 37.4%Language:TypeScript 20.4%Language:C++ 17.4%Language:Objective-C++ 10.6%Language:Objective-C 5.7%Language:Ruby 3.9%Language:JavaScript 2.5%Language:Starlark 1.4%Language:CMake 0.7%