UNPKG

@primer/components

Version:
22 lines (21 loc) 1.1 kB
/// <reference types="react" /> import { WidthProps } from 'styled-system'; import { SystemCommonProps } from './constants'; import { SxProp } from './sx'; import { ComponentProps } from './utils/types'; declare const Bar: import("styled-components").StyledComponent<"span", any, { progress?: string | number | undefined; } & SystemCommonProps, never>; declare const ProgressContainer: import("styled-components").StyledComponent<"span", any, { inline?: boolean | undefined; barSize?: "large" | "small" | "default" | undefined; } & WidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>> & SystemCommonProps & SxProp, never>; export declare type ProgressBarProps = ComponentProps<typeof ProgressContainer> & ComponentProps<typeof Bar>; declare function ProgressBar({ progress, bg, theme, ...rest }: ProgressBarProps): JSX.Element; declare namespace ProgressBar { var defaultProps: { bg: string; barSize: string; }; } export default ProgressBar;