InfoMessageSection
fun InfoMessageSection(message: String, modifier: Modifier = Modifier, learnMoreText: String? = null, learnMoreUrl: String? = null, learnMoreAction: () -> Unit? = null, newLine: Boolean = true)(source)
Displays an information message section with an optional "Learn More" link.
This composable displays a section containing:
An info icon.
A text message.
Optionally, a clickable "Learn More" link that opens a specified URL.
Parameters
message
The main message to be displayed.
modifier
The modifier to be applied to the container (Column).
learnMoreText
The text to be displayed for the "Learn More" link. If null or empty, the link will not be shown.
learnMoreUrl
The URL to be opened when the "Learn More" link is clicked. If null or empty, the link will not be shown.
Example Usage:
import com.mihaicristiancondrea.android.libs.apptoolkit.core.common.utils.constants.ui.SizeConstants
InfoMessageSection(
message = "This is an important information message.",
modifier = Modifier.padding(SizeConstants.LargeSize),
learnMoreText = "Learn More",
learnMoreUrl = "https://www.example.com"
)
InfoMessageSection(
message = "Another message without a learn more link",Content copied to clipboard