MediaSFU ReactJS
    Preparing search index...

    Variable MiniCardAudioConst

    MiniCardAudio: React.FC<MiniCardAudioOptions> = ...

    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.

    The properties for the MiniCardAudio component.

    Custom styles to apply to the card container.

    The name displayed on the card.

    Determines whether the waveform animation is visible.

    Position for the overlay containing the waveform.

    Color of the animated waveform bars.

    Color of the displayed name text.

    URL for the background image on the card.

    If true, applies rounded corners to the background image.

    Additional styles for customizing the background image.

    The rendered MiniCardAudio component.

    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;