Style configuration for the RecordingIndicator component.
Controls the visual appearance and animation behavior of the recording indicator. Includes settings for typography, animation, and size-specific configurations.
const customStyles: Partial<RecordingIndicatorStyles> = { borderRadius: 2, // More rounded corners fontWeight: 700, // Bolder text animationDuration: '1s', // Faster pulse animation formatDuration: (seconds) => { // Custom format: always show hours const hrs = Math.floor(seconds / 3600); const mins = Math.floor((seconds % 3600) / 60); const secs = seconds % 60; return `${hrs}:${String(mins).padStart(2, '0')}:${String(secs).padStart(2, '0')}`; },};<RecordingIndicator isRecording={true} styles={customStyles} /> Copy
const customStyles: Partial<RecordingIndicatorStyles> = { borderRadius: 2, // More rounded corners fontWeight: 700, // Bolder text animationDuration: '1s', // Faster pulse animation formatDuration: (seconds) => { // Custom format: always show hours const hrs = Math.floor(seconds / 3600); const mins = Math.floor((seconds % 3600) / 60); const secs = seconds % 60; return `${hrs}:${String(mins).padStart(2, '0')}:${String(secs).padStart(2, '0')}`; },};<RecordingIndicator isRecording={true} styles={customStyles} />
Animation duration (CSS value, default: "1.5s")
Border radius (MUI theme value, default: 1)
Font weight for label (default: 600)
Function to format duration display
Letter spacing for label (default: 1)
Size configurations for small, medium, large
Style configuration for the RecordingIndicator component.
Remarks
Controls the visual appearance and animation behavior of the recording indicator. Includes settings for typography, animation, and size-specific configurations.
Example