UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

29 lines (28 loc) 1.56 kB
import * as React from 'react'; import { SpaceProps } from '@xstyled/system'; import { Scale } from '../theme/typography.theme'; export declare type FontWeights = 'normal' | 'bold' | 'bolder' | 'lighter' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 'initial' | 'inherit'; export declare type TextTransforms = 'none' | 'capitalize' | 'uppercase' | 'lowercase' | 'initial' | 'inherit'; declare type DisplayValues = 'inline' | 'block' | 'contents' | 'flex' | 'grid' | 'inline-block' | 'inline-flex' | 'inline-grid' | 'inline-table' | 'list-item' | 'run-in' | 'table' | 'table-caption' | 'table-column-group' | 'table-header-group' | 'table-footer-group' | 'table-row-group' | 'table-cell' | 'table-column' | 'table-row' | 'none' | 'initial' | 'inherit'; export declare type TextAlign = 'center' | 'left' | 'right' | 'inherit' | 'justify' | 'start' | 'end'; export interface TypographyProps extends SpaceProps, React.HTMLAttributes<any> { className?: string; align?: TextAlign; transform?: TextTransforms; display?: DisplayValues; htmlFor?: string; href?: string; children?: any; weight?: FontWeights; color?: 'inherit' | 'initial' | string; scale?: Scale; size?: number | string; lineHeight?: number | string; } export interface StyledTypographyProps extends TypographyProps { $color?: 'inherit' | 'initial' | string; asVariant?: any; scaleVariant?: any; } export declare const Typography: import("styled-components").StyledComponent<"span", any, StyledTypographyProps, never>; export {};