Hiyve Components - v1.0.0
    Preparing search index...

    Interface GainControlIcons

    Custom icons for the GainControl component.

    All icons in the GainControl can be replaced with custom React nodes. The icon displayed changes automatically based on the current volume level.

    import { FaVolumeMute, FaVolumeDown, FaVolumeUp, FaVolumeOff } from 'react-icons/fa';

    const customIcons: Partial<GainControlIcons> = {
    volumeOff: <FaVolumeOff />,
    volumeMute: <FaVolumeMute />,
    volumeDown: <FaVolumeDown />,
    volumeUp: <FaVolumeUp />,
    };

    <GainControl icons={customIcons} onChange={handleChange} />
    interface GainControlIcons {
        volumeDown: ReactNode;
        volumeMute: ReactNode;
        volumeOff: ReactNode;
        volumeUp: ReactNode;
    }
    Index

    Properties

    volumeDown: ReactNode

    Icon when volume is low-medium

    volumeMute: ReactNode

    Icon when volume is very low

    volumeOff: ReactNode

    Icon when muted or value is 0

    volumeUp: ReactNode

    Icon when volume is high