A typographical logo of Contenido.

Text transform

With the help of text transform you can simply make your text stand out. Text transform can help you show the importance of a part of your text and improve the legibility.

Custom style map #

Custom style map is an object that help you to create your desired styles and assign a key to that. There is an initialStyleMap map provided by Contenido. It's a better practice to spread the initial value in your final style map to use the built-in styles.

Toggle text transform #

To toggle the text transform, you can use toggleInlineStyle.

hasInlineStyleOf #

This function help you to find out if the current character has your style or not. The returend boolean will update on cursor moves.

Example #

This example uses toggleInlineStyle and hasInlineStyleOf utilities to change the text transform.




Made with ❤ for a better experience

MIT © 2023 - This site does not track you.