UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

15 lines 766 B
import { type StyledComponent } from 'styled-components'; import React from 'react'; import type { SystemCommonProps, SystemTypographyProps } from '../constants'; import type { SxProp } from '../sx'; import type { ComponentProps } from '../utils/types'; type StyledTextProps = { as?: React.ComponentType<any> | keyof JSX.IntrinsicElements; size?: 'large' | 'medium' | 'small'; weight?: 'light' | 'normal' | 'medium' | 'semibold'; } & SystemTypographyProps & SystemCommonProps & SxProp; declare const StyledText: StyledComponent<"span", any, StyledTextProps, never>; declare const Text: StyledComponent<"span", any, StyledTextProps, never>; export type TextProps = ComponentProps<typeof StyledText>; export default Text; //# sourceMappingURL=Text.d.ts.map