Text
The Text component can be imported as follows:
Examples
Customizing Font Size
fontSize="6xl"
fontSize="5xl"
fontSize="4xl"
fontSize="3xl"
fontSize="2xl"
fontSize="xl"
fontSize="lg"
fontSize="md"
fontSize="sm"
fontSize="xs"
Truncating Text
noOfLines = 3
Once upon a time, in the vast plains of Africa, there lived a magnificent rhinoceros named Ricardo. Ricardo was a gentle giant, known for his massive horn and calm demeanor. He roamed freely across the savannah, always mindful of his surroundings. Ricardo had a unique story that captured the hearts of all who encountered him. Born with a distinctive pattern on his tough skin resembling a constellation, he became a symbol of strength and beauty. Despite his immense size, Ricardo possessed a kind soul. He would often be seen mingling with other animals, offering protection and support whenever they needed it. His presence alone brought a sense of tranquility to the wilderness. One sunny day, while Ricardo grazed peacefully near a watering hole, he spotted a family of playful elephants. Intrigued by their jovial antics, he decided to join in their games. The elephants welcomed him with open hearts, and together they created memories that would last a lifetime. As time passed, news of Ricardo's gentle nature spread far and wide. People from distant lands yearned to catch a glimpse of this remarkable rhino. They traveled great distances to witness his majestic presence and learn from his serene aura. Ricardo's story served as a reminder that strength could coexist with compassion. His remarkable journey touched the lives of many, inspiring them to embrace their unique qualities and treat others with kindness. And so, Ricardo the rhino continued his adventures, traversing the plains and leaving a trail of wonder and awe in his wake. His legacy lived on, forever etched in the hearts of those who knew him, as a symbol of resilience, grace, and the extraordinary power of a gentle spirit.
Overriding the Text Style
<span>
element. However, you can override this behavior by using the as prop. This allows you to render the text as a different HTML element.<Text as="b">
<Text as="i">
<Text as="u">
<Text as="abbr">
<Text as="cite">
<Text as="del">
<Text as="em">
<Text as="ins">
<Text as="kbd">
<Text as="mark">
<Text as="q">
Quote
<Text as="s">
<Text as="samp">
<Text as="sub">
<Text as="sup">
Did you know?
Creative Idea No. 1
Discover the Magic
Code
Creative Idea No. 2
Stay Connected
Explore the Possibilities
Unleash Your Creativity
Code
Creative Idea No. 3
Code
copyright © 2023 IHeartComponents | evanmarie.com
created with love by the I♥️Components team using
Special thanks to Stefan Bohacek / Generative Placeholders.