Docs (4.0.0)
class UIComponent type

type TextStyleType

Options for typography used on UI components.

static

type TextStyleType = {
    direction?: "rtl" | "ltr";
    textAlign?: string;
    fontFamily?: string;
    fontSize?: string | number;
    fontWeight?: string | number;
    letterSpacing?: string | number;
    lineHeight?: string | number;
    lineBreakMode?: "normal" | "nowrap" | "pre" | "pre-wrap" | "pre-line" | "ellipsis" | "clip" | "";
    bold?: boolean;
    italic?: boolean;
    uppercase?: boolean;
    smallCaps?: boolean;
    underline?: boolean;
    strikeThrough?: boolean;
    userSelect?: boolean;
}

Related

  • class UIComponent abstractBase class for built-in UI components.
  • class UIStyleA class that defines a set of styles that can be applied to UI components.