@primer/react
Version:
An implementation of GitHub's Primer Design System using React
35 lines • 1.44 kB
TypeScript
import React from 'react';
import type { WidthProps } from 'styled-system';
import type { SxProp } from '../sx';
type ProgressProp = {
className?: string;
progress?: string | number;
bg?: string;
};
type StyledProgressContainerProps = {
inline?: boolean;
barSize?: 'small' | 'default' | 'large';
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?: "small" | "default" | "large";
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