ConstStyles include progress bar dimensions, paper elevation, padding values, and audio level thresholds that determine color changes.
import { defaultDevicePreviewStyles, DevicePreview } from '@hiyve/react-ui';
// More sensitive audio level indicator
const sensitiveStyles = {
...defaultDevicePreviewStyles,
lowThreshold: 30, // Green below 30%
highThreshold: 60, // Red above 60%
progressBarHeight: 12,
};
<DevicePreview styles={sensitiveStyles} onReady={handleJoin} />
Default styles for the DevicePreview component.