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

    Interface GainControlProps

    Props for the GainControl component.

    The GainControl provides a slider for adjusting audio gain/volume with a mute button, value display, and optional label. It supports both horizontal and vertical orientations.

    <GainControl
    value={micGain}
    onChange={setMicGain}
    min={0}
    max={200}
    label="Microphone"
    showMuteButton
    showValue
    />
    interface GainControlProps {
        disabled?: boolean;
        icons?: Partial<GainControlIcons>;
        label?: string;
        labels?: Partial<GainControlLabels>;
        max?: number;
        min?: number;
        onChange: (value: number) => void;
        orientation?: "horizontal" | "vertical";
        showMuteButton?: boolean;
        showValue?: boolean;
        size?: string | number;
        step?: number;
        styles?: Partial<GainControlStyles>;
        sx?: SxProps<Theme>;
        value?: number;
    }
    Index

    Properties

    disabled?: boolean

    Whether the control is disabled

    icons?: Partial<GainControlIcons>

    Custom icons

    label?: string

    Label for the control

    labels?: Partial<GainControlLabels>

    Custom labels for i18n support

    max?: number

    Maximum gain value (default: 200)

    min?: number

    Minimum gain value (default: 0)

    onChange: (value: number) => void

    Callback when gain changes

    orientation?: "horizontal" | "vertical"

    Orientation (default: 'horizontal')

    showMuteButton?: boolean

    Show mute button (default: true)

    showValue?: boolean

    Show the current value (default: true)

    size?: string | number

    Width for horizontal / Height for vertical (default: 200)

    step?: number

    Step value (default: 1)

    styles?: Partial<GainControlStyles>

    Custom styles

    sx?: SxProps<Theme>

    MUI sx styling prop

    value?: number

    Current gain value (0-200, default: 100)