mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Updated wix-style-react text Updated ellipsed to ellipsis, based on WSR latest docs * updated tests for Wix style react
28 lines
522 B
TypeScript
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';
|