Version: 2.0.2

ColorPicker

Description

Dialog which allows the user to select color.

Example

import React from "react";
import { View, ColorPicker } from "magic-script-components";
export default class MyApp extends React.Component {
render() {
return (
<View name="main-view">
<ColorPicker color={[1, 0.5, 1, 0.8]} />
</View>
);
}
}

Common Events

Common Properties

Create Properties

NameTypeDefault ValueDescription
colorstring[1.0, 1.0, 1.0, 1.0]The initial color for the color picker.
heightnumber0Optional height for the color picker.

Element Properties

NameTypeDescription
colorstringThe initial color for the color picker.