Last Updated on : 2021-09-30 11:21:16
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 |
import { ColorDisk } from 'tuya-panel-lamp-sdk'
const ColorDisks = () => (
<ColorDisk
radius={100}
colors={['#E292FE', '#FFF76B', '#96D35F', '#52D6FC', '#B18CFE']}
/>
);
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback