BpkLink
fun BpkLink(text: String, onLinkClicked: (String) -> Unit, modifier: Modifier = Modifier, textStyle: TextStyle = LocalTextStyle.current, style: BpkLinkStyle = BpkLinkStyle.Default)
BpkLink component for displaying text with clickable links using markdown syntax.
Parameters
text
The text containing markdown-style links url
onLinkClicked
Callback invoked when a link is clicked, receives the URL.
modifier
The modifier to be applied to the composable
textStyle
The style to be applied to the text
style
The visual style of the link (Default or OnContrast)
fun BpkLink(segments: List<TextSegment>, onLinkClicked: (String) -> Unit, modifier: Modifier = Modifier, textStyle: TextStyle = LocalTextStyle.current, style: BpkLinkStyle = BpkLinkStyle.Default)
BpkLink component for displaying text with clickable links using type-safe segments.
Parameters
segments
The list of text segments (plain text and links), you can use buildTextSegments to create it
onLinkClicked
Callback invoked when a link is clicked, receives the URL
modifier
The modifier to be applied to the composable
textStyle
The style to be applied to the text
style
The visual style of the link (Default or OnContrast)