UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

17 lines (16 loc) 622 B
/// <reference types="react" /> import { SxProp } from '../sx'; import { ComponentProps } from '../utils/types'; declare const sizeMap: { small: string; medium: string; large: string; }; export interface SpinnerInternalProps { /** Sets the width and height of the spinner. */ size?: keyof typeof sizeMap; } declare function Spinner({ size: sizeKey, ...props }: SpinnerInternalProps): JSX.Element; declare const StyledSpinner: import("styled-components").StyledComponent<typeof Spinner, any, SxProp, never>; export type SpinnerProps = ComponentProps<typeof StyledSpinner>; export default StyledSpinner;