Music Bar

Last Updated on : 2023-05-29 10:11:59Copy for LLMView as MarkdownDownload PDF

MusicBar

Preview

Music Bar

Properties

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

Example

import { MusicBar } from '@tuya/tuya-panel-lamp-sdk'

const MusicBars = () => (
  <MusicBar
    size={50}
    colors={musicBarColor}
    musicIndex={musicIndex}
  />
);