toggle menu
ui
0.24.2
jvm
switch theme
search in API
ui
/
org.jetbrains.jewel.ui.component
/
Text
Text
@
Composable
fun
Text
(
text
:
String
,
modifier
:
Modifier
=
Modifier
,
color
:
Color
=
Color.Unspecified
,
fontSize
:
TextUnit
=
TextUnit.Unspecified
,
fontStyle
:
FontStyle
?
=
null
,
fontWeight
:
FontWeight
?
=
null
,
fontFamily
:
FontFamily
?
=
null
,
letterSpacing
:
TextUnit
=
TextUnit.Unspecified
,
textDecoration
:
TextDecoration
?
=
null
,
textAlign
:
TextAlign
=
TextAlign.Unspecified
,
lineHeight
:
TextUnit
=
TextUnit.Unspecified
,
overflow
:
TextOverflow
=
TextOverflow.Clip
,
softWrap
:
Boolean
=
true
,
maxLines
:
Int
=
Int.MAX_VALUE
,
onTextLayout
:
(
TextLayoutResult
)
->
Unit
=
{}
,
style
:
TextStyle
=
JewelTheme.defaultTextStyle
)
@
Composable
fun
Text
(
text
:
AnnotatedString
,
modifier
:
Modifier
=
Modifier
,
color
:
Color
=
Color.Unspecified
,
fontSize
:
TextUnit
=
TextUnit.Unspecified
,
fontStyle
:
FontStyle
?
=
null
,
fontWeight
:
FontWeight
?
=
null
,
fontFamily
:
FontFamily
?
=
null
,
letterSpacing
:
TextUnit
=
TextUnit.Unspecified
,
textDecoration
:
TextDecoration
?
=
null
,
textAlign
:
TextAlign
=
TextAlign.Unspecified
,
lineHeight
:
TextUnit
=
TextUnit.Unspecified
,
overflow
:
TextOverflow
=
TextOverflow.Clip
,
softWrap
:
Boolean
=
true
,
maxLines
:
Int
=
Int.MAX_VALUE
,
inlineContent
:
Map
<
String
,
InlineTextContent
>
=
emptyMap()
,
onTextLayout
:
(
TextLayoutResult
)
->
Unit
=
{}
,
style
:
TextStyle
=
JewelTheme.defaultTextStyle
)