Rachel
Toggle table of contents
3.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.ui
/
love.yinlin.compose.ui.text
/
Text
Text
@
Composable
fun
Text
(
text
:
String
,
modifier
:
Modifier
=
Modifier
,
color
:
Color
=
Color.Unspecified
,
autoSizer
:
AutoSizer
?
=
null
,
fontSize
:
TextUnit
=
TextUnit.Unspecified
,
fontStyle
:
FontStyle
?
=
null
,
fontWeight
:
FontWeight
?
=
null
,
fontFamily
:
FontFamily
?
=
null
,
letterSpacing
:
TextUnit
=
TextUnit.Unspecified
,
textDecoration
:
TextDecoration
?
=
null
,
textAlign
:
TextAlign
?
=
null
,
lineHeight
:
TextUnit
=
TextUnit.Unspecified
,
overflow
:
TextOverflow
=
TextOverflow.Clip
,
softWrap
:
Boolean
=
true
,
maxLines
:
Int
=
Int.MAX_VALUE
,
minLines
:
Int
=
1
,
onTextLayout
:
(
TextLayoutResult
)
->
Unit
?
=
null
,
style
:
TextStyle
=
LocalStyle.current
)
@
Composable
fun
Text
(
text
:
AnnotatedString
,
modifier
:
Modifier
=
Modifier
,
color
:
Color
=
Color.Unspecified
,
autoSizer
:
AutoSizer
?
=
null
,
fontSize
:
TextUnit
=
TextUnit.Unspecified
,
fontStyle
:
FontStyle
?
=
null
,
fontWeight
:
FontWeight
?
=
null
,
fontFamily
:
FontFamily
?
=
null
,
letterSpacing
:
TextUnit
=
TextUnit.Unspecified
,
textDecoration
:
TextDecoration
?
=
null
,
textAlign
:
TextAlign
?
=
null
,
lineHeight
:
TextUnit
=
TextUnit.Unspecified
,
overflow
:
TextOverflow
=
TextOverflow.Clip
,
softWrap
:
Boolean
=
true
,
maxLines
:
Int
=
Int.MAX_VALUE
,
minLines
:
Int
=
1
,
inlineContent
:
Map
<
String
,
InlineTextContent
>
=
emptyMap()
,
onTextLayout
:
(
TextLayoutResult
)
->
Unit
=
{}
,
style
:
TextStyle
=
LocalStyle.current
)