Skip to content

Rt ​

Ruby annotation text. Must appear as the sole Rt child inside a Ruby node.

Props ​

PropTypeDefaultDescription
fontstring—Override font alias
fallbackstring[]—Override fallback font alias chain
fontWeightnumber—Override font weight
fontStyle"normal" | "italic"—Override font style
fontVariationSettingsstring—Variable font settings
fontFeatureSettingsstring—OpenType feature settings (e.g. "'liga' 0, 'smcp' 1")
fontSizePxnumber—Annotation font size in px
lineHeightnumber—Unitless line-height multiplier
lineHeightPxnumber—Line height in px (priority over lineHeight)
letterSpacingPxnumber—Letter spacing in px
colorstring—Annotation text color
language"ja" | "en" | "auto"—Language hint
textOrientation"mixed" | "upright"—Character orientation in vertical text

Example ​

tsx
<Ruby>
  漢字
  <Rt fontSizePx={12} color="#6366f1">
    かんじ
  </Rt>
</Ruby>