Customizable text labels for the GainControl component.
All text displayed in the GainControl can be customized through this interface. This enables full internationalization (i18n) support.
const germanLabels: Partial<GainControlLabels> = { mute: 'Stummschalten', unmute: 'Stummschaltung aufheben', formatValue: (value) => `${Math.round(value)} %`,};<GainControl labels={germanLabels} onChange={handleChange} /> Copy
const germanLabels: Partial<GainControlLabels> = { mute: 'Stummschalten', unmute: 'Stummschaltung aufheben', formatValue: (value) => `${Math.round(value)} %`,};<GainControl labels={germanLabels} onChange={handleChange} />
Function to format the displayed value
Tooltip text for mute action
Tooltip text for unmute action
Customizable text labels for the GainControl component.
Remarks
All text displayed in the GainControl can be customized through this interface. This enables full internationalization (i18n) support.
Example