type ProgressProps = {
className?: string;
size?: "M" | "S";
status?: "default" | "success" | "error" | "warning";
theme?: "dark" | "light";
};
export default function Progress({ className, size = "M", status = "default", theme = "dark" }: ProgressProps) {
const isDarkAndDefaultAndS = theme === "dark" && status === "default" && size === "S";
const isDarkAndErrorAndM = theme === "dark" && status === "error" && size === "M";
const isDarkAndErrorAndS = theme === "dark" && status === "error" && size === "S";
const isDarkAndSuccessAndM = theme === "dark" && status === "success" && size === "M";
const isDarkAndSuccessAndS = theme === "dark" && status === "success" && size === "S";
const isDarkAndWarningAndM = theme === "dark" && status === "warning" && size === "M";
const isDarkAndWarningAndS = theme === "dark" && status === "warning" && size === "S";
const isLightAndDefaultAndM = theme === "light" && status === "default" && size === "M";
const isLightAndDefaultAndS = theme === "light" && status === "default" && size === "S";
const isLightAndErrorAndM = theme === "light" && status === "error" && size === "M";
const isLightAndErrorAndS = theme === "light" && status === "error" && size === "S";
const isLightAndSuccessAndM = theme === "light" && status === "success" && size === "M";
const isLightAndSuccessAndS = theme === "light" && status === "success" && size === "S";
const isLightAndWarningAndM = theme === "light" && status === "warning" && size === "M";
const isLightAndWarningAndS = theme === "light" && status === "warning" && size === "S";
return (
);
}SUPER CRITICAL: The generated React+Tailwind code MUST be converted to match the target project's technology stack and styling system.
1. Analyze the target codebase to identify: technology stack, styling approach, component patterns, and design tokens
2. Convert React syntax to the target framework/library
3. Transform all Tailwind classes to the target styling system while preserving exact visual design
4. Follow the project's existing patterns and conventions
DO NOT install any Tailwind as a dependency unless the user instructs you to do so.
Node ids have been added to the code as data attributes, e.g. `data-node-id="1:2"`.These styles are contained in the design: Roboto/12 tips: Font(family: "Roboto", style: Regular, size: 12, weight: 400, lineHeight: 16, letterSpacing: 0).Component descriptions: The following components have usage descriptions or documentation links defined in Figma. These descriptions provide important context about the intended usage, best practices, and any constraints for each component. Follow these guidelines when implementing or using these components.
## Progress
**Node ID:** 4915:7287
Progress bar — theme(dark/light) × status(default/success/error/warning) × size(M/S). All colors bound to TVU Design System variables.Images and SVGs will be stored as constants, e.g. const image = 'https://www.figma.com/api/mcp/asset/550e8400-e29b-41d4-a716-446655440000'. These constants will be used in the code as the source for the image, ex:
. Image assets are stored on a remote server for 7 days and can be fetched using the provided URLs until they expire.