@totalsoft/rocket-ui
Version:
A set of reusable and composable React components built on top of Material UI core for developing fast and friendly web applications interfaces.
26 lines (23 loc) • 726 B
text/typescript
import { LinearProgressProps as MuiLinearProgressProps } from '@mui/material'
import { TypographyProps } from '../../dataDisplay/Typography'
import { Color } from '../../types'
type ProgressColor = Exclude<Color, 'default' | 'white' | 'transparent' | 'inherit'> | 'grey'
export interface LinearProgressProps extends Omit<MuiLinearProgressProps, 'color'> {
/**
* @default "grey"
* Color of the component.
*/
color?: ProgressColor
/**
* Props applied to the label.
*/
labelProps?: TypographyProps
/**
* If true it shows the progress indicator value (%).
*/
showLabel?: boolean
/**
* If true, the bar is shown at the top of the page, spanning the entire width
*/
global?: boolean
}