DefinitelyTyped/types/wix-style-react/Text.d.ts
Marik Shnitman 49ed33321e Updated wix-style-react Text definition to match WSR docs (#40040)
* Updated wix-style-react text

Updated ellipsed to ellipsis, based on WSR latest docs

* updated tests for Wix style react
2019-11-05 13:35:36 -08:00

28 lines
522 B
TypeScript

import * as React from 'react';
export interface TextProps {
showTooltip?: boolean;
ellipsis?: boolean;
tagName?: string;
className?: string;
size?: TextSize;
secondary?: boolean;
skin?: TextSkin;
light?: boolean;
weight?: TextWeight;
}
declare const Text: React.SFC<TextProps>;
export default Text;
export type TextSize = 'tiny' | 'small' | 'medium';
export type TextSkin =
| 'standard'
| 'error'
| 'success'
| 'premium'
| 'disabled';
export type TextWeight = 'thin' | 'normal' | 'bold';