Package-level declarations

JengaLink: an inline text action.

Types

Link copied to clipboard
class JengaLinkColors(val content: Color, val disabledContent: Color)

Resolved colors for a JengaLink.

Link copied to clipboard

Defaults for JengaLink. Each one follows the theme's JengaLinkStyle.

Link copied to clipboard
class JengaLinkStyle(val textStyle: TextStyle? = null, val underline: Boolean? = null, val contentPadding: PaddingValues? = null, val colors: JengaLinkColors? = null)

Theme-wide style for every JengaLink, set through io.github.joelkanyi.jenga.theme.JengaComponentStyles.link. A null value keeps Jenga's default; arguments passed to a call still win.

Functions

Link copied to clipboard
fun JengaLink(text: String, onClick: () -> Unit, modifier: Modifier = Modifier, style: TextStyle = JengaLinkDefaults.textStyle, colors: JengaLinkColors = JengaLinkDefaults.colors(), enabled: Boolean = true, underline: Boolean = JengaLinkDefaults.underline, leadingIcon: @Composable () -> Unit? = null, contentPadding: PaddingValues = JengaLinkDefaults.contentPadding)

A tappable text link: brand-coloured and underlined by convention, the way a hyperlink reads. The caller decides what a tap does (open a URL through the platform LocalUriHandler, navigate, and so on), so the link stays framework-agnostic and cannot leak a URL type into the design system.