OptionaldisabledWhether the control is disabled
OptionaliconsCustom icons
OptionallabelLabel for the control
OptionallabelsCustom labels for i18n support
OptionalmaxMaximum gain value (default: 200)
OptionalminMinimum gain value (default: 0)
Callback when gain changes
OptionalorientationOrientation (default: 'horizontal')
OptionalshowShow mute button (default: true)
OptionalshowShow the current value (default: true)
OptionalsizeWidth for horizontal / Height for vertical (default: 200)
OptionalstepStep value (default: 1)
OptionalstylesCustom styles
OptionalsxMUI sx styling prop
OptionalvalueCurrent gain value (0-200, default: 100)
Props for the GainControl component.
Remarks
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.
Example