Represents the styling that is applied to text.
Signature:
/** @sealed */
export declare class TextStyle extends TextStyleBase implements Readonly<TextStyleProps>
Extends: TextStyleBase
Implements: Readonly<TextStyleProps>
Constructor | Modifiers | Description |
---|---|---|
(constructor)(props) | Constructs a new instance of the TextStyle class |
Property | Modifiers | Type | Description |
---|---|---|---|
classType |
|
import("paratype").Type<import("paratype").RecordObject<Partial<{ bold: boolean; italic: boolean; underline: boolean; strike: boolean; baseline: "sub" | "normal" | "super"; fontFamily: "body" | "heading" | "monospace" | "cursive" | "decorative"; fontSize: number; link: Interaction | null; color: "default" | "subtle" | "primary" | "secondary" | "information" | "success" | "warning" | "error"; spellcheck: boolean; translate: boolean; lang: string; }>, Partial<{ bold: boolean; italic: boolean; underline: boolean; strike: boolean; baseline: "sub" | "normal" | "super"; fontFamily: "body" | "heading" | "monospace" | "cursive" | "decorative"; fontSize: number; link: Interaction | null; color: "default" | "subtle" | "primary" | "secondary" | "information" | "success" | "warning" | "error"; spellcheck: boolean; translate: boolean; lang: string; }>> & import("paratype").Equatable & Readonly<Partial<{ bold: boolean; italic: boolean; underline: boolean; strike: boolean; baseline: "sub" | "normal" | "super"; fontFamily: "body" | "heading" | "monospace" | "cursive" | "decorative"; fontSize: number; link: Interaction | null; color: "default" | "subtle" | "primary" | "secondary" | "information" | "success" | "warning" | "error"; spellcheck: boolean; translate: boolean; lang: string; }>> & TextStyle> | The run-time type that represents this class |
empty |
|
TextStyle | Gets an empty text style |
isEmpty | readonly |
boolean | Determines whether the current style is empty |