This style control the Font
support pixel value
const style = {
"font-size": "20px",
}
Sets the color of the Text Component
const style = {
"text-color": "blue",
}
sets the horizontal spacing behavior between text characters
const style = {
"letter-spacing": "3px",
}
sets the horizontal spacing behavior between text line
const style = {
"line-spacing": "3px",
}
sets the desired behavior for an Text component's overflow
property with the following value
- ellipsis, p the size and write dots at the end if the text is too long
- clip, Keep the size and clip the text out of it
- auto, Keep the object width, wrap the too long lines and expand the object height
- scroll, Keep the size and roll the text back and forth
- circular, Keep the size and roll the text circularly
const style = {
"text-overflow": "clip",
}
sets the horizontal alignment of Text Component content
property with the following value
- auto
- left
- center
- right
const style = {
"text-align": "center",
}
sets the orientation of the text characters in a line
property with the following value
- none
- underline
- strikethrough
const style = {
"text-decoration": "underline",
}
test/style/text