UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

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