Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 647 Bytes

auto-resized-text.md

File metadata and controls

26 lines (18 loc) · 647 Bytes

Auto-Resized Text

Renders auto-resized text, adjusting its font size to fit within a specified minimum size.

AutoResizedText(
  modifier = modifier,
  text = text,
  style = style,
  minFontSize = minFontSize,
)

Required:

  • text [String]: The text to be displayed.

Optional:

  • modifier [Modifier]: The modifier to apply to this composable.
  • style [TextStyle]: The style to be applied to the text. Defaults to the current LocalTextStyle.
  • minFontSize [TextUnit]: The minimum font size that the text should have. Defaults to 11.sp.

Preview

auto-resize text sample