Skip to content

StyleProps

Property Type Description
backgroundColor? string -
border? BorderSpec -
color? string -
direction? "auto" | "ltr" | "rtl" Base text direction: ltr, rtl or auto (the default, decided by the first strong character). Right-to-left text is right-aligned unless textAlign is set.
fontFamily? string -
fontSize? number Font size in points.
fontStyle? "normal" | "italic" -
fontWeight? "normal" | "bold" -
padding? number | Padding Padding in template units: one value for all sides, or per side.
textAlign? "left" | "center" | "right" | "justify" -
textDecoration? "none" | "underline" | "line-through" -
verticalAlign? "top" | "middle" | "bottom" -