Color Disk

Last Updated on : 2021-09-30 11:21:16

ColorDisk

Preview

Color Disk

Properties

Field name Type Description Default value
style ViewStyle The component style. None
radius number The radius. 0
startAngle number The starting deflection angle (radian angle). 0
colors [string | { color: string; percent? : number }] The color data. None

Example

import { ColorDisk } from 'tuya-panel-lamp-sdk'

const ColorDisks = () => (
  <ColorDisk
    radius={100}
    colors={['#E292FE', '#FFF76B', '#96D35F', '#52D6FC', '#B18CFE']}
  />
);