ColorPicker
An interface for selecting a color with a Hue / Saturation box and a Value slider. Individual RGB and HSV values can also be modified manually.
Dark | Light |
---|---|
This is a controlled component, which means the current color should be passed in to the
Color
prop and a callback value to the OnChanged
prop which gets run when the user attempts
to change the color. For example:
local function MyComponent()
local color, setColor = React.useState(Color3.fromHex("#008080"))
return React.createElement(StudioComponents.ColorPicker, {
Value = color,
OnChanged = setColor,
})
end
The default size of this component is exposed in Constants.DefaultColorPickerSize. To keep all inputs accessible, it is recommended not to use a smaller size than this.
This component is not a modal or dialog box (this should be implemented separately).