KPInfoBox

fun KPInfoBox(style: InfoBoxStyle, text: String, modifier: Modifier = Modifier, iconPosition: Arrangement.Horizontal? = null, showBorder: Boolean = false, showDashedBorder: Boolean = false)

KPInfoBox is a composable function that displays an information box with a specified style, text, and optional icon. Optionally, it can display an icon and a border.

Parameters

style

An InfoBoxStyle instance that defines the style of the info box.

text

A single text content that will be displayed if the multiText parameter is not used.

modifier

A Modifier instance to modify the component. The default value is Modifier.

iconPosition

Determines the position of the icon, which can be Arrangement.Start or Arrangement.End.

showBorder

A boolean value to enable border display. The default value is false.

showDashedBorder

A boolean value to enable dashed border display. The default value is false.


fun KPInfoBox(style: InfoBoxStyle, modifier: Modifier = Modifier, iconPosition: Arrangement.Horizontal? = null, showBorder: Boolean = false, showDashedBorder: Boolean = false, multiText: @Composable ColumnScope.() -> Unit)

KPInfoBox is a composable function that displays an information box with a specified style and customizable multi-line text. Optionally, it can display an icon and a border.

Parameters

style

An InfoBoxStyle instance that defines the style of the info box.

modifier

A Modifier instance to modify the component. The default value is Modifier.

iconPosition

Determines the position of the icon, which can be Arrangement.Start or Arrangement.End.

showBorder

A boolean value to enable border display. The default value is false.

showDashedBorder

A boolean value to enable dashed border display. The default value is false.

multiText

A composable lambda that allows for custom text content in a ColumnScope.

  •    Use this to provide multiple lines of text or custom text elements.