WordConfig
type WordConfig = {
className?: string;
ruby?: string;
} & Color & Font;
For color, see color. For Font, see Font.
ruby
The ruby
property is used to display ruby text. This is useful for displaying phonetic guides for Chinese characters.
className
The className
property is used to set the class name of the word.
new Word({
className: 'bold',
});