UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

40 lines 1.51 kB
import React from 'react'; import type { WidthProps } from 'styled-system'; import type { SxProp } from '../sx'; type ProgressProp = { className?: string; progress?: string | number; bg?: string; }; declare const sizeMap: { small: string; large: string; default: string; }; type StyledProgressContainerProps = { inline?: boolean; barSize?: keyof typeof sizeMap; animated?: boolean; } & WidthProps & SxProp; export type ProgressBarItems = React.HTMLAttributes<HTMLSpanElement> & { 'aria-label'?: string; className?: string; } & ProgressProp & SxProp; export declare const Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & { 'aria-label'?: string; className?: string; } & ProgressProp & SxProp & React.RefAttributes<HTMLSpanElement>>; export type ProgressBarProps = React.HTMLAttributes<HTMLSpanElement> & { bg?: string; className?: string; } & StyledProgressContainerProps & ProgressProp; export declare const ProgressBar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & { bg?: string; className?: string; } & { inline?: boolean; barSize?: keyof typeof sizeMap; animated?: boolean; } & WidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>> & SxProp & ProgressProp & React.RefAttributes<HTMLSpanElement>>; export {}; //# sourceMappingURL=ProgressBar.d.ts.map