Last Updated on : 2023-05-29 10:11:59download
| Field name | Type | Description | Default value |
|---|---|---|---|
| style | ViewStyle | The style of the component. | None |
| musicIndex | number | The animation duration index. | None |
| colors | string[] | The color. | None |
| size | number | The height. | None |
| barNum | number | The number of music bars. | 22 |
import { MusicBar } from '@tuya/tuya-panel-lamp-sdk'
const MusicBars = () => (
<MusicBar
size={50}
colors={musicBarColor}
musicIndex={musicIndex}
/>
);
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback