react-wired-elements
Version:
Wired Elements as React components. TypeScript types included.
50 lines (49 loc) • 1.32 kB
TypeScript
import { BaseProps } from './types';
export interface WiredProgressProps extends BaseProps {
/**
* The completion value (0-100)
* @default 30
*/
value?: number;
/**
* The minimum value
* @default 0
*/
min?: number;
/**
* The maximum value
* @default 100
*/
max?: number;
/**
* Show the percentage sign (%) next to the value.
* @default false
*/
showPercentage?: boolean;
/**
* Color of the label.
* @default "black"
*/
labelColor?: string;
/**
* Color of the label background.
* @default "rgba(255,255,255,0.9)"
*/
labelBgColor?: string;
/**
* Color of the progress bar.
* @default 'rgba(0, 0, 200, 0.8)'
*/
progressBarColor?: string;
/**
* The size of the text.
* @default "14px"
*/
fontSize?: number;
/**
* An optional value between 1 and 100 (%) which will cause the progress bar to be "stuck" at that value with an animated feel.
* @default "14px"
*/
stuckAt?: number;
}
export declare const WiredProgress: ({ value, min, max, showPercentage, labelColor, labelBgColor, progressBarColor, fontSize, stuckAt, className, style, }: WiredProgressProps) => JSX.Element;