docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a React component that displays a circular progress indicator with dynamically switchable gradient themes. The component should allow users to toggle between different visual styles at runtime.
The component should:
Ocean Theme:
Sunset Theme:
Forest Theme:
The component should accept the following props:
percent: A number between 0 and 100 representing the progress percentagetheme: A string indicating the theme mode ("ocean", "sunset", or "forest")import React from 'react';
interface GradientSwitcherProps {
percent: number;
theme: 'ocean' | 'sunset' | 'forest';
}
export function GradientSwitcher(props: GradientSwitcherProps): JSX.Element;Provides progress visualization components with gradient support.