Package-level declarations

Types

Link copied to clipboard

Resolved styling in effect for the widgets below it.

Link copied to clipboard

Access to the styling currently in effect.

Link copied to clipboard
data class ThanklyTokens(val accent: Color? = null, val surface: Color? = null, val onSurface: Color? = null, val headingStyle: TextStyle? = null, val bodyStyle: TextStyle? = null, val cornerRadius: Dp = 12.dp, val spacing: Dp = 12.dp)

Styling knobs for Thankly widgets.

Link copied to clipboard

Maps widget types to renderers.

Link copied to clipboard

Renders one widget type.

Functions

Link copied to clipboard
fun ThanklyTheme(tokens: ThanklyTokens = ThanklyTokens(), content: @Composable () -> Unit)

Applies Thankly styling to the widgets inside it.

Link copied to clipboard
fun ThanklyWidget(widget: Widget, modifier: Modifier = Modifier, registry: WidgetRegistry = WidgetRegistry.default())

Render one widget.

Link copied to clipboard
fun ThanklyWidgets(result: ExperienceResult, modifier: Modifier = Modifier, registry: WidgetRegistry = WidgetRegistry.default())

Render every widget in a result, in order.