Function MiniCardAudio

MiniCardAudio component displays an audio card with an optional animated waveform and background image.

This component is designed to render an interactive audio card with customizable styling, optional waveform animation, and a background image. The waveform animation is responsive and changes based on the audio levels.

import React from 'react';
import { MiniCardAudio } from 'mediasfu-reactjs';

function App() {
return (
<MiniCardAudio
customStyle={{ backgroundColor: 'black' }}
name="Sample Audio"
showWaveform={true}
overlayPosition="bottom"
barColor="blue"
textColor="yellow"
imageSource="path/to/image.jpg"
roundedImage={true}
imageStyle={{ borderRadius: '10px' }}
/>
);
}

export default App;

Properties

propTypes?: any

Ignored by React.

Only kept in types for backwards compatibility. Will be removed in a future major release.

displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.


const MyComponent: FC = () => {
return <div>Hello!</div>
}

MyComponent.displayName = 'MyAwesomeComponent'