Function MiniCard

MiniAudio component displays an audio player with an optional waveform animation and draggable functionality.

This component provides a customizable audio display card that includes an animated waveform (optional) and a background image. The card can be dragged around the screen.

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

function App() {
return (
<MiniAudio
visible={true}
customStyle={{ backgroundColor: 'blue' }}
name="Sample Audio"
showWaveform={true}
barColor="green"
textColor="black"
nameTextStyling={{ fontSize: '20px' }}
imageSource="path/to/image.jpg"
roundedImage={true}
imageStyle={{ width: '100px' }}
overlayPosition="top"
/>
);
}

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'